MediaCenter.PlayMediaEx Method

Loads a new media item into Windows Media Center. This method can place the item into the queue or immediately begin playing the item as the current media experience.

Note   This method has been deprecated.

Syntax

  MediaCenter.PlayMediaEx(
  mediaType, mediaLocation, addToQueue)

Parameters

mediaType

A Number (int) that indicates the media type. For more information, see the Remarks for the MediaCenter.PlayMedia method.

mediaLocation

A String that contains the location of the media item to load. For more information, see MediaCenter.PlayMedia.

addToQueue

A Boolean that indicates whether to add the new media item to the queue or begin playing it immediately. If true, the new item is added to the queue and played in its turn. If false, the new item begins playing immediately, preempting the currently playing item, if any. This parameter is valid only if mediaType is set to 1 (audio); otherwise, it is ignored.

Return Value

A Boolean that indicates whether the media item was loaded or not.

Remarks

For more information, see MediaCenter.PlayMedia.

Requirements

Platform: HTML application hosted within Windows XP Media Center Edition 2004 through Windows Vista

See Also