Media Bar

This topic documents a feature that is obsolete as of Windows Internet Explorer 7.

Obsolete. The Media Bar provides a basic UI for locating and playing media within the browser window, including simple controls that enable the user to play music, video, or mixed-media files, and to search for additional media content, without opening a separate window. The Media Bar default behavior exposes much of the Media Bar functionality to scripting, giving you control over playback, navigation, and the player UI. It also enables you to load HTML in the Media Bar content area.

Note  As of Microsoft Internet Explorer 6 on Windows XP Service Pack 2 (SP2) or Internet Explorer 7, the mediaBar feature is obsolete and no longer available.

Because the mediaBar is an implementation of the Microsoft Windows Media Player, some Media Bar members are essentially the same as those in the Windows Media Player SDK, notably the onopenstatechange and onplaystatechange events and the openState, playState, and enabled properties. For more information about the Windows Media Player object model, see the Player reference.

The following links provide information about the object model exposed by the mediaBar behavior.

Overviews/Tutorials

Using the Media Bar in Internet Explorer

Obsolete. New in Internet Explorer 6, the Media Bar provides a straightforward UI for locating and playing media within the browser window. The Media Bar includes an HTML content area and a player control—essentially a smaller implementation of the Windows Media Player—that enables the user to play music, video, or mixed-media files, search for additional media content, and display HTML in the bar without opening a separate window.

Behaviors

mediaBar

Obsolete. Provides a basic UI for locating and playing media within the browser window. The Media Bar

Objects

MediaItem

Obsolete. Represents a single item in a media player playlist.

PlaylistInfo

Obsolete. Contains information about a media player playlist.

Properties

attributeCount

Obsolete. Retrieves the count of the attributes associated with the media object.

currentItem

Obsolete. Retrieves the current media item.

disabledUI

Obsolete. Sets or retrieves a Boolean value that specifies whether an instance of the Media BarUI is disabled.

duration

Obsolete. Retrieves the duration of the current media item.

enabled

Obsolete. Sets or retrieves a Boolean value that specifies whether the Media Bar player control is enabled.

hasNextItem

Obsolete. Retrieves a value that indicates whether any successive items follow the current item in the playlist.

name

Obsolete. Retrieves the name of the media.

nextItem

Obsolete. Retrieves the next media item in a playlist, if there is one.

openState

Obsolete. Retrieves an integer that indicates the open state of the Media Bar player.

playlistInfo

Obsolete. Retrieves playlist information, if a playlist exists.

playState

Obsolete. Retrieves an integer that indicates the play state of the Media Bar player.

sourceURL

Obsolete. Retrieves the URL of the media.

Methods

getAttributeName

Obsolete. Returns the name of the attribute whose index has been specified.

getItemInfo

Obsolete. Returns the value of the specified attribute for the current media.

playNext

Obsolete. Starts playback of the next media item in the playlist, if a playlist is present.

playURL

Obsolete. Loads media from a URL into the Media Bar and starts playback.

stop

Obsolete. Stops playback of the media that is currently playing.

Events

onhide

Obsolete. Fires when the Media Bar player is hidden.

onopenstatechange

Obsolete. Fires when the Media Bar player changes its open state.

onplaystatechange

Obsolete. Fires when the Media Bar player changes its play state.

onshow

Obsolete. Fires when the Media Bar player becomes visible.