playback.complete - Events - Items API

Items API Events

playback:complete

Fires when the playback has reached the end of the file.

You would want to be notified about this event firing, because you may want to reveal a Question to the learner, for example.

Important Available for Audio or Video Question types only.

Examples

itemsApp.question('[my_response_id]').on('playback:complete', function () {
    console.log('This code executes when the playback has reached the end of the file.');
});

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.