Skip to main content

playerState

since 0.9.4
playerStateJavaScriptPlayerState.netplayerStateAndroid

Description​

The current player state. Gets the current player state, meaning whether it is paused or playing.

readonly playerState: PlayerState;

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
if(api.playerState != alphaTab.synth.PlayerState.Playing) api.play();