Controls the media playback component.
Properties
controlChannel |
Set this integer first to determine which media channel you'd like to control (default is 0). |
track |
Moves to the start of the specified track number. |
Methods
play() |
Plays each track of media in the playlist in turn. If paused, this will resume playback. |
stop() |
Stops playing, and rewinds to the start of the track. |
pause() |
Pauses playback of the current media. |
forward() |
Advances to the start of the next track. |
back() |
Moves to the start of the previous track. |
playFile(filename) |
Plays any media file from a disk file or URL immediately. |
Examples
scene.media.play();
scene.media.track=5;
Remarks
If you haven't set your media to 'auto-play', you will need to make sure you call 'system.media.play()' at some point in your script.
See Also


