playPause
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 |
Parameters
None
Returns
true
if the playback was started, otherwise false
. Reasons for not starting can be that the player is not ready or already playing.
Examples
var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playPause();
$('#alphaTab').alphaTab('playPause');
var api = new AlphaTabApi<MyControl>(...);
api.PlayPause();