Vimeo autoplay

Sep 28, 2023

Hi I would like to insert a vimeo video that starts automatically.

I tried to insert the code created by vimeo.

<iframe src="https://player.vimeo.com/video/721069858?h=eeb08462f5&autoplay=1&title=0&byline=0&portrait=0" width="640" height="272" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>

The video loads but autoplay doesn't work. Same for Youtube.
How can I do this?

Thank

4 Replies
Jürgen Schoenemeyer

autoplay on vimeo/youtube is only working, if the user has clicked before on the page*

If your video is the first slide of the course, you need to make sure that the storyline shows the "Play" button before it starts (for example, with an unused audio in a layer)

just tested again on local webserver and scorm cloud**

 

* it's like autoplay of audio/video of "normal" audio/video

** important: on Review 360 autoplay is not possible on Chrome (the website is misconfigured)

Nedim Ramic

Some modern browsers like chrome will not auto-play a video if it's not muted. The general rule of many browsers is that a user must opt-in to certain actions before they can happen. Check the attached photo to see the reason why. You need to add "muted" attribute to get your video to autoplay.

<iframe src="https://player.vimeo.com/video/721069858?h=eeb08462f5&muted=1&autoplay=1&title=0&byline=0&portrait=0" width="640" height="272" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>

giovanni fantoni

Hi Jürgen,

I tried your solution by inserting a silent audio and it works perfectly.
I also inserted a transparent rectangle above the video layer, which lasts as long as the video. In this way the student cannot freeze the video until it is finished.

Works well

Thank

Gianni