Go to and autoplay embedded video on click

  • 4 September 2020
  • 2 replies
  • 904 views

Hi 

In a workshop I set up I wanted to finish by clicking an icon that would move over to an embedded video and play it (the “that’s all folks” with Looney Tunes). I could not make it both navigate to and start the video on the same click, so I linked to the external youtube page instead (where I could include autoplay in the link).

Is it possible to include an autoplay command in an internal Miro link to the embedded video.? if so, how do you do it?

 

Thanks

Anders


2 replies

Userlevel 7
Badge +6

@Anders Kjöllerström -

I don’t know of any non-development method of doing this but it might be possible through the API - @Boris Borodyansky , could we get your insights on this?

Kiron

Since April 2018, Google made some changes to the  Autoplay Policy. You not only need to add the autoplay=1 as a query param, but also add allow='autoplay' as an iframe's attribute

 

So while embed youtube video, you will have to do something like this:

<iframe src="https://www.youtube.com/embed/VIDEO_ID?autoplay=1" allow='autoplay'></iframe>

 

Reply