Questions API Events
playback:complete
Fires when the media playback has reached the end of the file.
You would want to be notified about this event firing, because you may want to know when the audio or video file has finished playing so that you can show the stopped status in your custom control panel, for example.
Important Available for Audio or Video Feature types only.
Examples
itemsApp.feature('[my_response_id]').on('playback:complete', function () {
console.log('This code executes when the playback has reached the end of the file.');
});
Related articles
- The
playback:assetLoaded
event, the event that occurs when the media file has loaded and is ready to play. - The
playback:paused
event, the event that occurs when the playback is paused. - 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.