31 #include "nsISupports.idl"
114 [scriptable,
uuid(91a57ebd-65e4-4320-84a1-fa0f6f74af15)]
185 readonly attribute AString
name;
364 readonly attribute
boolean mute;
993 boolean hasAccess( in AString aRemotePermCataegory );
1084 in AString displayName,
1085 [optional] in
boolean readOnly,
1086 [optional] in
boolean viewable,
1087 [optional] in
unsigned long nullSort );
1133 in AString displayName,
1134 in PRInt32 timeType,
1135 [optional] in
boolean readOnly,
1136 [optional] in
boolean viewable,
1137 [optional] in
unsigned long nullSort );
1178 in AString displayName,
1179 [optional] in
boolean readOnly,
1180 [optional] in
boolean viewable,
1181 [optional] in
unsigned long nullSort );
1222 in AString displayName,
1223 [optional] in
boolean readOnly,
1224 [optional] in
boolean viewable,
1225 [optional] in
unsigned long nullSort );
1267 in AString displayName,
1268 [optional] in
boolean readOnly,
1269 [optional] in
boolean viewable,
1270 [optional] in
unsigned long nullSort );
1311 in AString displayName,
1312 [optional] in
boolean readOnly,
1313 [optional] in
boolean viewable,
1314 [optional] in
unsigned long nullSort );
1357 in AString displayName,
1358 in AString buttonLabel,
1359 [optional] in
boolean readOnly,
1360 [optional] in
boolean viewable,
1361 [optional] in
unsigned long nullSort );
1419 in AString displayName,
1420 in AString buttonLabel,
1421 [optional] in
boolean readOnly,
1422 [optional] in
boolean viewable,
1423 [optional] in
unsigned long nullSort );
An interface to control a media list from remote web pages.
readonly attribute sbIRemoteLibrary mainLibrary
readonly attribute unsigned long apiVersionMajor
The major API version.
void stop()
Stop playback. Sets position to beginning.
readonly attribute sbIRemoteMediaList downloadMediaList
void downloadList(in sbIRemoteMediaList aList)
Download all items in a MediaList.
void fireEventToContent(in AString aClass, in AString aType)
Fires the event to the webpage.
void next()
Skip to the next track and begin playing.
void setSiteScope(in AUTF8String aDomain, in AUTF8String aPath)
readonly attribute boolean mute
The mute state.
nsIURI getSiteScope()
Get the site scope.
readonly attribute long long repeat
The repeat state for playback.
readonly attribute long long volume
The volume on a range from 0 to 255.
attribute long long position
The location of playback within the current media, in milliseconds.
boolean hasAccess(in AString aRemotePermCataegory)
Check if the code has access to a category.
boolean supportsVersion(in AString aAPIVersion)
Convenience method to see if the requested API version is supported.
This interface is a composition of many of our other interfaces with the goal of exposing a more web-...
void playMediaList(in sbIRemoteMediaList aList, in PRInt32 aIndex)
void createTextProperty(in AString ID, in AString displayName, [optional] in boolean readOnly, [optional] in boolean viewable, [optional] in unsigned long nullSort)
readonly attribute unsigned long long duration
The duration of the current media, in milliseconds.
void removeListener(in AString aKey, in sbIRemoteObserver aObserver)
Remove an observer from the metadata key.
sbIRemoteLibrary libraries(in AString aLibraryID)
void pause()
Stop playback, leaves position at current location.
readonly attribute AString currentTrack
The name of the currently playing track.
void previous()
Skip to the previous track and begin playing.
void createDownloadButtonProperty(in AString ID, in AString displayName, in AString buttonLabel, [optional] in boolean readOnly, [optional] in boolean viewable, [optional] in unsigned long nullSort)
void onCommandsChanged()
Forces the webplaylist to rescan its commands.
An interface to specify playlist commands from remote web pages.
readonly attribute sbIRemoteLibrary siteLibrary
void addListener(in AString aKey, in sbIRemoteObserver aObserver)
Bind an observer to get called on changes to Songbird metadata/state.
readonly attribute sbIRemoteWebPlaylist webPlaylist
The current web playlist.
readonly attribute AString currentArtist
The name of the artist for the currently playing media item.
An interface to control a media library from remote web pages.
readonly attribute sbIRemoteCommands commands
The collection of commands associated with the current page.
void createURIProperty(in AString ID, in AString displayName, [optional] in boolean readOnly, [optional] in boolean viewable, [optional] in unsigned long nullSort)
void createRatingsProperty(in AString ID, in AString displayName, [optional] in boolean readOnly, [optional] in boolean viewable, [optional] in unsigned long nullSort)
readonly attribute boolean paused
The paused state of the application.
void downloadSelected(in sbIRemoteWebPlaylist aWebPlaylist)
Download only the selected elements from a WebPlaylist.
readonly attribute AString name
The name of the player.
void createButtonProperty(in AString ID, in AString displayName, in AString buttonLabel, [optional] in boolean readOnly, [optional] in boolean viewable, [optional] in unsigned long nullSort)
readonly attribute sbIRemoteLibrary webLibrary
void play()
Begin playback at the current location.
readonly attribute boolean shuffle
Shuffle state for playback.
void createNumberProperty(in AString ID, in AString displayName, [optional] in boolean readOnly, [optional] in boolean viewable, [optional] in unsigned long nullSort)
readonly attribute AString currentAlbum
The name of the album for the currently playing track.
void fireMediaItemStatusEventToContent(in AString aClass, in AString aType, in sbIMediaItem aMediaItem, in long aStatus)
Fires the media item status event to the webpage.
void playURL(in AString aURL)
Play an media file by URL.
void downloadItem(in sbIMediaItem aItem)
Download the item passed in.
void createImageProperty(in AString ID, in AString displayName, [optional] in boolean readOnly, [optional] in boolean viewable, [optional] in unsigned long nullSort)
readonly attribute boolean playing
The playing state of the application.
void createDateTimeProperty(in AString ID, in AString displayName, in PRInt32 timeType, [optional] in boolean readOnly, [optional] in boolean viewable, [optional] in unsigned long nullSort)
readonly attribute unsigned long apiVersionMinor
The minor API version.
Lightweight Observer style interface for use with sbIRemotePlayer::addListener.