Is there any way to play media when the page has finnished loading?
/Anders
Not as it stands, no.
You could do this fairly easily by adding a call to this.onOverlayClick()
at the end of the onPlayerReady
function
Note that it would not work in iOS as iOS does not allow media to be played automatically - playback can only be initiated as the direct result of a 'user gesture' - except in iOS10 where you can now autoplay video if there's no audio track or the player is muted.