play
Description​
Starts the playback of the current song.
- JavaScript
- C#
- Kotlin
play(): boolean
bool Play()
fun 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​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.play();
var api = new AlphaTabApi<MyControl>(...);
api.Play();
val api = AlphaTabApi<MyControl>(...)
api.play()