playerState
playerStateJavaScript
PlayerState.net
playerStateAndroid
Description​
The current player state. Gets the current player state, meaning whether it is paused or playing.
- JavaScript
- C#
- Kotlin
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
if(api.playerState != alphaTab.synth.PlayerState.Playing) api.play();
var api = new AlphaTabApi<MyControl>(...);
if(api.PlayerState != PlayerState.Playing) api.Play();
val api = AlphaTabApi<MyControl>(...)
if (api.playerState != PlayerState.Playing) api.play()