MediaTransport.Position Property

Gets or sets the current position in the media stream, relative to a starting point.

Syntax

public System.TimeSpan Position {get; set;}

Property Value

System.TimeSpan. The current position of the media playback relative to a starting point. The starting point varies according to the medium as follows.

Medium Description
DVD Gets or sets the offset from the start of the video, in milliseconds.
FM Radio Gets or sets the offset from the start of the radio program, in milliseconds. Radio programs are presumed to start in half-hour intervals on the hour or half hour (for example, 4:00 and 4:30).
TV Gets or sets the offset from the start of the currently playing TV program, in milliseconds.
Video Gets or sets the offset from the start of the video, in milliseconds.

This property is read/write.

Remarks

The pause buffer for TV or FM radio is up to 30 minutes long, starting from the time the user tunes in. If you specify a value for this property, the new value sets the playback position to a particular point in the buffer. You can set the position to any time that is later than the time the user tuned in the current channel, up to the current time. Setting the position to a time that occurred before the user tuned in the current channel moves the playback position to the beginning of the buffer. Setting the position to a time that is later than the current time returns Windows Media Center to live playback.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also