ClipInformation Class
Metadata class for scheduling and viewing a segment of audio or video media data.
Inheritance Hierarchy
System.Object
Microsoft.Web.Media.SmoothStreaming.ClipInformation
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
Syntax
'Declaration
Public Class ClipInformation
'Usage
Dim instance As ClipInformation
public class ClipInformation
public ref class ClipInformation
type ClipInformation = class end
public class ClipInformation
The ClipInformation type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ClipInformation(Boolean, Uri) | Initializes a new instance of the ClipInformation class. | |
ClipInformation(Boolean, Uri, Uri) | Initializes a new instance of the ClipInformation class. | |
ClipInformation(Boolean, Uri, Duration) | Initializes a new instance of the ClipInformation class. | |
ClipInformation(Boolean, Uri, Uri, Duration) | Initializes a new instance of the ClipInformation class. | |
ClipInformation(Boolean, Uri, Uri, Duration, ISmoothStreamingCache) | Initializes a new instance of the ClipInformation class. |
Top
Properties
Name | Description | |
---|---|---|
ClickThroughUri | Gets or sets a Uri object that contains the Uri to additional information. | |
ClipUri | Gets or sets a Uri object that contains the clip source. | |
Duration | Gets or sets the running time of the media clip. | |
IsSmoothStreamingSource | Gets or sets a Boolean value that indicates whether the media clip is in Smooth Streaming format. | |
SmoothStreamingCache | Gets or sets the Smooth Streaming cache. | |
UseSmoothStreamingCache | Gets or sets a Boolean value that indicates whether to use the Smooth Streaming cache. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
SetSource | Sets the source for the clip. Enables setting the clip information on the clip MediaElement for extensibility purposes. | |
ToString | (Inherited from Object.) |
Top
Examples
You can initialize a ClipInformation object that specifies the media clip to play by its ClipUri and Duration. You can also supply the ClickThroughUri to provide follow-up information to the user when he clicks on the SmoothStreamingMediaElement surface while it is playing the clip.
private void InsertClipCheckbox_Checked(object sender, RoutedEventArgs e)
{
clips.Add(new ClipInformation(true,
new Uri("http://<serverName>/advertisement-clip.ism/Manifest"),
new Uri("https://msdn.microsoft.com/en-us/library/microsoft.web.media.smoothstreaming.aspx"),
new TimeSpan(1789250001)));
}
For more information, see Scheduling Media Clips.
Version Information
Silverlight
Supported in: 5
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.