playerState
Description​
Gets the current player state, meaning whether it is paused or playing.
playerStateJavaScript |
alphaTab('playerState')jQuery |
PlayerState.net |
playerStateAndroid |
Types​
Type | Values |
---|---|
alphaTab.synth.PlayerStateJavaScript |
|
AlphaTab.Synth.PlayerState.net | |
alphaTab.synth.PlayerStateAndroid |
Examples​
- JavaScript
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
if(api.playerState != alphaTab.synth.PlayerState.Playing) api.play();
const at = $('#alphaTab');
if(at.alphaTab('playerState') != alphaTab.synth.PlayerState.Playing) at.alphaTab('play');
var api = new AlphaTabApi<MyControl>(...);
if(api.PlayerState != PlayerState.Playing) api.Play();
val api = AlphaTabApi<MyControl>(...)
if (api.playerState != PlayerState.Playing) api.play()