I am trying to determine when a video is ready to play, but i cant get any triggers on “loadedmetadata” or “canplay”.
So i have some questions that i cant figure out from the documentation.
Are the events in the documentation emitted from the iFrame, or do i need to find the video element within the iFrame?
Will the “canplay” event trigger when the video is set to Autoplay?
Any other reasons or gotchas to think of when working with events and the stream player?
This is a Vue project by the way, so I’m attaching the events by doing
@canplay="isLoaded(index)" on the iFrame. But i have tried to attach the event listener manually also, but to no avail.