You can find more information on these restrictions in the Player API Documentation. If set to true, the video will play as soon as it’s ready.ĪutoPlay will not work on iOS and other mobile devices due to restrictions on bandwidth on cellular networks. NOTE: When using the Customize API to update embed options, you don’t need to percent encode any option names or values. Visit the Customize API documentation to see how. This way, wherever you embed your video, it will inherit the customizations you’ve defined. You can update embed options saved within the Wistia app using the API. Note that, if you have mykey=myvalue, you must encode both mykey and myvalue separately you don’t want to include the = in your percent encoding! Setting options using the Customize API Need a quick way to percent encode some values? Look no further! Type your value in the box below and copy the percent encoded version. The first character after the video’s hashed ID must be a ?. It is similar to the option=value syntax of Standard embeds, but every option and value must be percent encoded and separated by an &. Options can only be set one way with iframe embeds. If you’d like to use embed options on all videos on your page, you can use the special “_all” matcher: window. You can also target all the videos on a page. Options defined this way will only take effect if they are pushed onto _wq before the video is embedded. If you have more complex options or need to generate them on the client side, you can use window._wq to set them with a javascript object literal: If an option value has spaces, you can percent encode it. Multiple options are separated by spaces. First, the most common method is to add class in the form option=value. Options can be set in two ways on Standard embeds and Popover embeds (which are actually just Standard Embeds with a special option). Setting options on Standard and Popover embeds If you would like to add embed options to Channels head over to the Channel Embed Options guide. For the most reliable experience, we recommend continuing to use these for videos in projects. We do not formally support using our APIs for audio files in projects, or audio or video episodes in Channels at this time. The Wistia APIs were specifically built for videos in projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |