Commands

The Commands Object allows remote web pages to add and remove commands.

The Commands Object is associated with a MediaList.  This means that when Commands are modified, the modifications are scoped to the media list.

Summary
The Commands Object allows remote web pages to add and remove commands.
Add a command.
Remove a command.

Command Methods

addCommand

Add a command.

Arguments

typeThe type of the command.  This can be any one of “action”, “separator”, “value”, or “submenu”.
idThe id of the command.
nameThe name of the command.
tooltipThe tooltip for the command.

removeCommand

Remove a command.

Arguments

idThe id of the command.

See Also

addCommand

A MediaList is a list of MediaItems.
The Commands Object allows remote web pages to add and remove commands.
Add a command.