MediaCollectionItem Class

Used to add an audio or video item to the media collection and specify properties for playback.

  public sealed class MediaCollectionItem : Microsoft.MediaCenter.UI.IPropertyObject, IQueryPlaybackCapabilities

Members

Public Instance Constructor

Method Description
MediaCollectionItem Initializes a new instance of the MediaCollectionItem class.

Public Instance Properties

Property Description
AllowFastForward Gets a value that indicates whether the user is allowed to fast forward during playback of the current item.
AllowNext Gets a value that indicates whether the user is allowed to advance to the next item in the media collection during playback of the current item.
AllowPrevious Gets a value that indicates whether the user is allowed to go back to the previous item in the media collection during playback of the current item.
AllowRewind Gets a value that indicates whether the user is allowed to rewind to the beginning during playback of the current item.
AllowSeekBack Gets a value that indicates whether the user is allowed to use the seek slider to move to a previous point (replay or frame step backward) during playback of the current item.
AllowSeekForward Gets a value that indicates whether the user is allowed to use the seek slider to move to a later point (skip forward or frame step forward) during playback of the current item.
FriendlyData Gets data strings to display in Now Playing in place of the metadata that is included in the media file.
Length Gets or sets the duration for which the current item is played.
Media Gets or sets the URI for the current media item.
PlaybackFlags Gets or sets a value that indicates which playback capabilities are allowed for the current media item.
Start Gets or sets the time offset from which the current item should start playing.
Tag Gets or sets an application-specific object for the current media item.

Public Instance Events

Event Description
PropertyChanged Fires when a property of the current MediaCollectionItem object changes.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

Platform: Windows 7

See Also