Since: 0.9.4

playerFinished

Description

This event is fired when the playback of the whole song finished. This event is finished regardless on whether looping is enabled or not.

playerFinished.net

Types

function()JavaScript
Action.net

Parameters

None

Examples

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playerFinished.on((args) => {
// speed trainer
api.playbackSpeed = Math.min(1.0, api.playbackSpeed + 0.1);
});
api.isLooping = true;
api.playbackSpeed = 0.5;
api.play()