Skip to main content

playerStateChanged

since 0.9.4

Description​

This event is fired when the playback state changed.

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playerStateChanged.on((args) => {
updatePlayerControls(args.state, args.stopped);
});