Skip to main content

playerReady

since 0.9.4

Description​

This event is fired when all required data for playback is loaded and ready. This event is fired when all required data for playback is loaded and ready. The player is ready for playback when all background workers are started, the audio output is initialized, a soundfont is loaded, and a song was loaded into the player as midi file.

playerReady: IEventEmitter;

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playerReady.on(() => {
enablePlayerControls();
});