Because of the dance that we need to do between both iframes, you should always wait till the ready events to fire before interacting with the player

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-07-04 19:00:04

Because of the dance that we need to do between both iframes, you should always wait till the ready events to fire before interacting with the player object. However, the player will internally queue messages until ready is called. :

The timing between when the iframe is added and when the ready event is fired is important. Sadly we cannot fire the ready event till the iframe is loaded, but there is no concrete way of telling when postmessage is available to us.

At this point we can reasonably assume that the iframe's been loaded and the ready. Player.js will take care of listening for ready events that were fired before the player is set up.

setPlaybackRate: number Set the playback rate which are available in the player. Doesn't returns an error if the passed playback rate is not available.

off: void Remove an event listener. If the listener is specified it should remove only that listener, otherwise remove all listeners:

Leave a Comment