The above image highlights the event sequence triggered by a Player visible after scrolling with the autoStart value set to firstTimeViewable and serving a pre-roll advertisement. The event sequence may change depending on the configuration and integration of the Player.
| |
|---|
| Sent every time a video is ready to play, or started playing (depending on autoplay settings, and their resolution by the browser), or is unable to play (blocked, restricted, unavailable). Listen to this event if you want to defer doing network-heavy and JavaScript-heavy work, to allow the optimal delivery of the first frames of the video to the used. |
| |
|---|
| Sent when the browser is fetching the media data. |
| Sent when a new video has been loaded in the player. (e.g. after calling loadContent({ video: 'xID' }), or at player start-up). |
| Sent each time a recommended video thumbnail (from either automatic recommendation, custom recommendation or contextual recommendation) is displayed for the first time in the Player carousels. |
| Sent when the duration property of the video becomes available or changes after a new video load. |
| |
|---|
| Sent when the Picture-in-Picture expanded mode changes, only on small viewports. |
| Sent when the player transitions to or from a Picture-in-Picture state, either native or the dailymotion version, or when the player enters or exits the fullscreen state. |
| |
|---|
| Sent when the Player viewability values changes (50% of the Player is within the user’s viewport). |
| |
|---|
| Sent when a companion ad is received. Companion ads should be played in sync with the main ad (linear/non-linear) by listening to events AD_START and AD_END. |
| Sent when the duration property of the video advertisement becomes available or changes after a new video load. |
| Sent when the player completes playback of an ad. |
| Sent when the first ad frame is displayed. |
| Sent when the player has loaded and buffered the creative’s media and assets either fully or to the extent that it is ready to play the media. |
| Sent when the player pauses an ad. |
| Sent when the ad playback starts or continues after being in a paused state. |
| Sent 6 seconds before an ad request is made. The request delay can be customized. |
| Sent when the player begins playback of an ad video. |
| Sent when the playback position of an ad changes. |
| Sent when a user clicks on a video ad. |
| |
|---|
| Sent the first time the player attempts to start the playback, either because of user interaction, an autoplay parameter or an API call (e.g play(), loadContent(), etc.). |
| Sent each time any playback request has failed or if the initial playback attempt has succeeded. |
| Sent when the playback of the content video, and eventual post-roll ad video is completed. |
| Sent when the playback state of the content video is no longer paused, as a result of the play method or the autoplay attribute. |
| Sent when the player begins playback of the content video. |
| Sent when the content video starts playing, after the play or waiting event. |
| Sent when the video playback has paused. |
| Sent when the player completes playback of the content video. |
| Sent when the player starts to seek to another position in the video timeline. |
| Sent when the player has completed a seeking operation. |
| Sent when the playback position changes. |
| |
|---|
| Sent when the aspect ratio of the player changes after calling setAspectRatio('4:3'). |
| Sent when the playback speed changes. |
| Sent when the volume level or mute state changes. |
| Sent when the scale mode of the player changes after using setScaleMode(). |
| Sent when video qualities are available. |
| Sent when the video quality changes. |
| Sent when the current subtitle changes. |
| Sent when subtitles are available. |
| |
|---|
| Sent when the player has to temporarily stop video playback for further buffering of content. |
| |
|---|
| Sent when the player triggers an error. Error code available in the Player State object. |
| Sent when the player is unloaded from the page due to Chrome browser’s heavy ads intervention policies. |