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
Public method ClipInformation(Boolean, Uri) Initializes a new instance of the ClipInformation class.
Public method ClipInformation(Boolean, Uri, Uri) Initializes a new instance of the ClipInformation class.
Public method ClipInformation(Boolean, Uri, Duration) Initializes a new instance of the ClipInformation class.
Public method ClipInformation(Boolean, Uri, Uri, Duration) Initializes a new instance of the ClipInformation class.
Public method ClipInformation(Boolean, Uri, Uri, Duration, ISmoothStreamingCache) Initializes a new instance of the ClipInformation class.

Top

Properties

  Name Description
Public property ClickThroughUri Gets or sets a Uri object that contains the Uri to additional information.
Public property ClipUri Gets or sets a Uri object that contains the clip source.
Public property Duration Gets or sets the running time of the media clip.
Public property IsSmoothStreamingSource Gets or sets a Boolean value that indicates whether the media clip is in Smooth Streaming format.
Public property SmoothStreamingCache Gets or sets the Smooth Streaming cache.
Public property UseSmoothStreamingCache Gets or sets a Boolean value that indicates whether to use the Smooth Streaming cache.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetSource Sets the source for the clip. Enables setting the clip information on the clip MediaElement for extensibility purposes.
Public method 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("http://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.

See Also

Reference

Microsoft.Web.Media.SmoothStreaming Namespace