sbIMediaItemStatusEvent.idl

Summary
A MediaItemStatusEvent is passed to any event handlers listening for media item status related events fired on the document object.
The MediaItem corresponding to the event.
The status of the event as an nsresult value.

Events

MediaItemStatusEvent

A MediaItemStatusEvent is passed to any event handlers listening for media item status related events fired on the document object.

Note that the Songbird object must be accessed before any events will be raised.  This will likely change in the future.

Example

function onDownloadComplete( aEvent ) {
// we can get the downloaded media item
alert(aEvent.item.guid);

// as well as the download status
alert(aEvent.status);
}

// initialize the event system
songbird;

// attach the event handler
document.addEventListener("downloadcomplete", onDownloadComplete, false);

See Also

MediaItem http://developer.mozilla.org/en/docs/DOM:event http://developer.mozilla.org- /en- /docs- /DOM:element.addEventListener

Properties

item

The MediaItem corresponding to the event.

Types

<MediaItem>

Properties

status

The status of the event as an nsresult value.  A status of NS_OK indicates success.

Types

<long>

A MediaItemStatusEvent is passed to any event handlers listening for media item status related events fired on the document object.
A MediaItem represents a partial or whole piece of media.
The Songbird object provides several pieces of functionality to your web page: playback, download, listener adding and removing and library creation and retrieval.