Skip to main content

play

since 0.9.4

Starts the playback of the current song.

play(): boolean

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โ€‹

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