·
"set position"
Optional Value: integer number (positive or negative)
Description: Jump to a position in the currently played back file. If no optional value is
provided, the position that is set in the position bar graph of the MultimediaPlayer is
used. If an optional value is provided, the value is treated as an offset to the current
position (in seconds).
·
"shuffle"
Optional Value: true or false
Description: If no value is provided, the pressed state of the MultimediaPlayer's shuffle
button is used. If true is provided as parameter, the playlist will be randomized. If false is
provided, the playlist will return to it's original sequence.
·
"loop"
Optional Value: integer number between 0 and 2
Description: If no value is provided, the value of the MultimediaPlayer's loop list is used.
If a value is provided, the values have the following effect: 0: Don't loop, 1: loop current
file, 2: loop playlist (after end of last file in playlist was reached, begin at start of playlist)
·
"add to playlist"
Mandatory Value: string with the path to the file that shall be added to the playlist
Description: Add a media file to the playlist of the multimedia player.
·
"remove from playlist"
Mandatory Value: string with the path to the file that shall be removed from the playlist. If
the file was added to the multimedia player at design time or if it was manually copied to
PROJECT_PATH/terminal_files/multimedia directory, it is enough to provide the file
name with suffix (e.g. "myMedia.mp3") to remove the file. If the file was added to the
playlist at runtime (e.g. from an USB drive), the full path (e.g.
"/disk/usbsda1/myMedia.mp3") needs to be used to remove the file from the playlist.
Description: Remove a file from the playlist.
·
"select playlist entry"
Mandatory Value: number >= 1
Description: Select a certein entry position in the playlist
·
"clear playlist"
Optional Value: None
Description: Remove all files from the playlist. After that the playlist will be empty.
·
"add directory to playlist"
Mandatory Value: string that contains a path to a folder that contains media files that
shall be added to the playlist
Description: Add all files in the specified directory to the playlist. Make sure that only
media files that can be played back are in the folder.
·
"toggle fullscreen"
Optional Value: None
Description: Switch between fullscreen mode and normal mode
·
"get playlist"
Optional Value: None
Description: Get an array that contains strings. The strings are the full qualified pathes to
the media files that are currently in the playlist.
Example:
//Our MultimediaPlayer object has object ID 42:
var mmpID = 42;
//Start playback of the current file