Skip to main content

playPause

since 0.9.4

Description​

Toggles between play/pause depending on the current player state. if the player was playing, it will pause. If it is paused, it will initiate a play.

Signatures​

function playPause()JavaScript
alphaTab('playPause')jQuery
void PlayPause().net
fun playPause(): UnitAndroid

Parameters​

None

Returns​

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playPause();