Items API Events
playback:paused
Fires when the media playback has been paused.
You would want to be notified about this event firing, because you may want to show an overlay to emphasize the paused status, for example.
Important Available for Audio or Video Feature types only.
Examples
itemsApp.feature('[my_response_id]').on('playback:paused', function () {
console.log('This code executes when the playback has been paused.');
});
Related articles
- The
playback:assetLoaded
event, the event that occurs when the media file has loaded and is ready to play. - The
playback:complete
event, the event that occurs when the playback has completed. - The
playback:resumed
event, the event that occurs when the playback is resumed. - The
playback:started
event, the event that occurs when the playback has started. - The
playback:stopped
event, the event that occurs when the playback has stopped.