music/play_redirect.ql
| Function | Description |
|---|---|
| native fun defaultPlay(songToPlay) | Play a song via the default "play" keyword invoked as a function, which will call the default "play" action as if no redirection happened. |
| native fun redirectPlayToList(songList) | Starts making all plays add to a song list instead of the previous play action. |
| native fun redirectPlayToFunction(fn) | Starts making all plays invoke the given function with 1 parameter of the song. |
| native fun redirectReset() | Stops all 'play's from any set action and returns it back to its default action. |
Play a song via the default "play" keyword invoked as a function, which will call the default "play" action as if no redirection happened.
songToPlay
( song )
|
The song |
Starts making all plays add to a song list instead of the previous play action.
songList
( list )
|
The list to add songs to |
Starts making all plays invoke the given function with 1 parameter of the song.
fn
|
The function to call with the song as an argument |
Stops all 'play's from any set action and returns it back to its default action.