SmoothStreamingMediaElement.SetPlaybackRangeAsync Method
Specifies a start position for playing media content.
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
Syntax
'Declaration
Public Sub SetPlaybackRangeAsync ( _
leftEdge As TimeSpan, _
rightEdge As TimeSpan, _
userState As Object _
)
'Usage
Dim instance As SmoothStreamingMediaElement
Dim leftEdge As TimeSpan
Dim rightEdge As TimeSpan
Dim userState As Object
instance.SetPlaybackRangeAsync(leftEdge, _
rightEdge, userState)
public void SetPlaybackRangeAsync(
TimeSpan leftEdge,
TimeSpan rightEdge,
Object userState
)
public:
void SetPlaybackRangeAsync(
TimeSpan leftEdge,
TimeSpan rightEdge,
Object^ userState
)
member SetPlaybackRangeAsync :
leftEdge:TimeSpan *
rightEdge:TimeSpan *
userState:Object -> unit
public function SetPlaybackRangeAsync(
leftEdge : TimeSpan,
rightEdge : TimeSpan,
userState : Object
)
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.
Remarks
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.
Version Information
Silverlight
Supported in: 5