Skip to main content

playerFinished

since 0.9.4

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

readonly playerFinished: IEventEmitter;

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()