Touch Develop retirement postponed until June 22, 2019. Sign-in and access to cloud assets to be removed on May 23, 2018.Learn More..


Player

Play, stop or resume songs, ...
function player → active song returns Song
Gets the active song if any
function player → is muted returns Boolean
Indicates if the player is muted
function player → is paused returns Boolean
Indicates if the player is paused
function player → is playing returns Boolean
Indicates if the player is playing a song
function player → is repeating returns Boolean
Indicates if the player is repeating
function player → is shuffled returns Boolean
Indicates if the player is shuffled
function player → is stopped returns Boolean
Indicates if the player is stopped
function player → on active song changed(body : Action) returns Event Binding
Attaches a handler when the active song changes
function player → on player state changed(body : Action) returns Event Binding
Attaches a handler when the player state changes
function player → pause
Pauses the currently playing song
function player → play(song : Song)
Plays a Song
function player → play position returns Number
Gets the position in seconds whithin the active song
function player → resume
Resumes a paused song
function player → set repeating(repeating : Boolean)
Sets the repeating on and off
function player → set shuffled(shuffled : Boolean)
Sets the shuffling on and off
function player → set sound volume(x : Number)
[not implemented] Sets the sound volume level from 0 (silent) to 1 (current volume)
function player → sound volume returns Number
[not implemented] Gets the sound volume for sounds from 0 (silent) to 1 (current volume)
function player → stop
Stops playing a song

edit this topic zdrazuwjmh