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


Type: Microsoft.Web.Media.SmoothStreaming..::..ClipInformation
A ClipInformation object.
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.
Type: System..::..TimeSpan
The start time of the clip.
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).


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


Supported in: 4