0

Embedder offers up some cool functionality, but I don't see where it explains how to set video parameters. It says you can, but not seeing how. Anyone successfully done this?

2

You have to use the previous example and format your own code to match.

Instead of

youtube_showinfo="0"

it goes in as

youtube_showinfo:0
2

The documentation has an example and a list of supported parameters.

You basically pass a configuration object into the Embedder function. For example in this case I am setting max_width and max_height:

{{ craft.embedder.embed (entry.videoField, {max_width:500, max_height:800}) }}

Are you looking for a specific parameter?

1
  • It took me a few minutes to realize that the notes were formatted wrong. Once I swapped out the '=' with ':' it all came together.
    – brunam
    Apr 24 '15 at 16:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.