Define parameters of a search

I have a few questions about embedding videos.

  1. This code is set to autoplay and starts automatically on Chrome but not Firefox.
  2. Are the x-video-embed code necessary? It functions in a similar way without them (although the autoplay still doesn’t work in FF)
  3. Is there anything I can add to the x-video-embed code to force it to autoplay? Thank you!
[x_video_embed no_container="true"]<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/389154115?autoplay=1&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
[/x_video_embed]

Hello @kcostellomak,

Thanks for writing in!

1.) Please keep in mind that most modern browsers renders the page like the video autoplay different. Chrome may play your video automatically, Firefox may also have restrictions preventing the video from playing automatically.

2.) The [x_video_embed][/x_video_embed] is needed if you want to display the video with the built in styling of the theme. You may use the iframe or video embed code directly if you have inserted it in Gutenberg which will also display with its default styling.

3.) To properly embed a video, you should be using this:

[x_video_embed no_container="true"]<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/389154115?autoplay=1&loop=1" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>[/x_video_embed]

Or simply get the embed code from video page in Vimeo:

Hope this helps.

Thank you @RueNel. I have been using both on different pages and the iframe code which is what Vimeo provides works by itself as far as I can tell. At least in the way that I am displaying them.

You’re welcome, glad we could help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.