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)

public:
ClipContext^ ScheduleClip(
	ClipInformation^ clipInfo, 
	bool pauseTimeline, 
	TimeSpan startOffset, 
	Object^ 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