Export (0) Print
Expand All

ScheduleClip Method (ClipInformation, Boolean, TimeSpan, Object)

Schedules playing of a media clip.

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

'Declaration
Public Function ScheduleClip ( _
	clipInfo As ClipInformation, _
	pauseTimeline As Boolean, _
	startOffset As TimeSpan, _
	userData As Object _
) As ClipContext
'Usage
Dim instance As SmoothStreamingMediaElement
Dim clipInfo As ClipInformation
Dim pauseTimeline As Boolean
Dim startOffset As TimeSpan
Dim userData As Object
Dim returnValue As ClipContext

returnValue = instance.ScheduleClip(clipInfo, _
	pauseTimeline, startOffset, userData)

Parameters

clipInfo
Type: Microsoft.Web.Media.SmoothStreaming..::..ClipInformation
A ClipInformation object.
pauseTimeline
Type: System..::..Boolean
true to pause the timeline when starting a clip; false to specify that the timeline continues while the clip plays. During on-demand video playback, it is typical to pause; live video sources typically continue the video without pausing.
startOffset
Type: System..::..TimeSpan
The start time of the clip.
userData
Type: System..::..Object
An object that can contain any data needed by the application, including the SmoothStreamingMediaElement object that will play the clip.

The method inserts a clip that will play for its duration, after which the stream that was interrupted resumes.

A media clip can be scheduled for play when the SmoothStreamingMediaElement object is in a Closed state by using the ScheduleClip method with the ManifestReady event.

For more information, see Scheduling Media Clips (IIS Smooth Streaming).

NoteNote:

IIS Smooth Streaming Clips scheduled by using ScheduleClip methods require manifests that start at timestamp zero.

Silverlight

Supported in: 4

Show:
© 2014 Microsoft