onAPIReady
onAPIReady
(
)
This event is fired when YAHOO.MediaPlayer API is initialized and ready to be used by third party applications.
This event should be the first event that 3rd party applications register to only after this event is triggered can the Media Player API be accessed safely
This event should be the first event that 3rd party applications register to only after this event is triggered can the Media Player API be accessed safely
onMediaUpdate
onMediaUpdate
(
)
Event fired when a media object is updated with properties like title, album etc.
The argument passed to the subscriber function is the media object that has been updated.
The argument passed to the subscriber function is the media object that has been updated.
onPlaylistUpdate
onPlaylistUpdate
(
)
This event is fired any time the playlist is updated.
The argument passed to the subscriber function is the playlist array.
The argument passed to the subscriber function is the playlist array.
onProgress
onProgress
(
)
This event is fired when the progress is updated when media is playing.
The argument passed to the subscriber function is of the form {elapsed: "elapsed time milliseconds", duration: "duration of the media in milliseconds"}
The argument passed to the subscriber function is of the form {elapsed: "elapsed time milliseconds", duration: "duration of the media in milliseconds"}
onTrackComplete
onTrackComplete
(
)
Event fired when entire media is finished playing.
The argument passed to the subscriber function is of the form {mediaObject:"the media object that just finished playing"}
The argument passed to the subscriber function is of the form {mediaObject:"the media object that just finished playing"}
onTrackPause
onTrackPause
(
)
Event fired when media is paused.
The argument passed to the subscriber function is of the form {mediaObject:"the media object being paused"}
The argument passed to the subscriber function is of the form {mediaObject:"the media object being paused"}
onTrackStart
onTrackStart
(
)
Event fired when media starts playing.
The argument passed to the subscriber function is of the form {mediaObject:"the media object being played"}
The argument passed to the subscriber function is of the form {mediaObject:"the media object being played"}