SmoothStreamingMediaElement.SetPlaybackRangeAsync Method

Silverlight

Specifies a start position for playing media content.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)


public void SetPlaybackRangeAsync(
	TimeSpan leftEdge,
	TimeSpan rightEdge,
	Object userState
)

Parameters

leftEdge
Type: System.TimeSpan
The start position of the content.
rightEdge
Type: System.TimeSpan
Reserved for future use.
userState
Type: System.Object
The user state for later retrieval.

The SetPlaybackRangeAsync method is an asynchronous operation and only supports a start-over scenario in Live-to-VOD.

The SetPlaybackRangeAsync method fails if it is called and then called again before the first call completes, or if it is called before a SegmentInfo.SelectStreamsAsync call or seek operation completes. A SegmentInfo.SelectStreamsAsync call fails if it called before a SetPlaybackRangeAsync call completes.

Silverlight

Supported in: 5
Show: