Skip to main content

playerFinished

since 0.9.4

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.

playerFinishedJavaScript
alphaTab.playerFinishedjQuery
alphaTab.playerFinishedHTML
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()