For the purpose of prohibiting going back to pages with a password access with the escape
key, it is possible to delete the browsing history with this command. To prohibit certain pages
from being accessable with the escape key, set the property "Add To Page History" to false.
The multimediaCommand function can be used to send commands to a MultimediaPlayer
object. Various commands can be used to control playback or manipulate the playlist of the
MultimediaPlayer object.
Prototype:
var result = multimediaCommand(number MultimediaPlayerObjectID,
string commandString, number eoptionalValue);
The first parameter is the object ID of the MultimediaPlayer object to which the command shall
be sent.
The second parameter is the command string (see below for a list of available commands.
Note that the command string can either be in upper or lower case letters (e.g. "play" ==
"Play" == "PLAY"))
The third parameter is an optional/mandatory value that can/needs to be provided to some of
the commands.
Note:The multimediaCommand function returns true (if the command was successfully sent to
the MultimediaPlayer object) or false (if the command failed). The only exception is: If the
command string is "get playlist", an array containing the pathes of all files that are currently in
the playlist is returned.
Available commands:
·
"play"
Optional Value: None
Description: Begin playback of the currently selected media file
·
"stop"
Optional Value: None
Description: Stop playback of the currently selected media file
·
"pause"
Optional Value: None
Description: Pause playback of the currently selected media file
·
"back"
Optional Value: None
Description: Jump to the previous file in the playlist
·
"next"
Optional Value: None
Description: Jump to the next file in the playlist
·
"mute"
Optional Value: None
Description: Mute the MultimediaPlayer
·
"unmute"
Optional Value: None
Description: Unmute the MultimediaPlayer (current volume set)
·
"set volume"
Optional Value: volume offset, any integer number (volume is restricted to be between 0
and 100, so it only makes sense to set an offset between -100 and 100)
Description: If no optional value is provided, the volume that is set in the volume bar
graph of the MultimediaPlayer is used. If an optional volume is provided, this will be
treated as an offset to the current volume.