Since: 0.9.4

playerReady

Description

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.net

Types

function()JavaScript
Action.net

Parameters

none

Examples

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