Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ClipInformation Class

Metadata class for scheduling and viewing a segment of audio or video media data.

System.Object
  Microsoft.Web.Media.SmoothStreaming.ClipInformation

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

public class ClipInformation

The ClipInformation type exposes the following members.

  NameDescription
Public methodClipInformation(Boolean, Uri)Initializes a new instance of the ClipInformation class.
Public methodClipInformation(Boolean, Uri, Uri)Initializes a new instance of the ClipInformation class.
Public methodClipInformation(Boolean, Uri, Duration)Initializes a new instance of the ClipInformation class.
Public methodClipInformation(Boolean, Uri, Uri, Duration)Initializes a new instance of the ClipInformation class.
Public methodClipInformation(Boolean, Uri, Uri, Duration, ISmoothStreamingCache)Initializes a new instance of the ClipInformation class.
Top
  NameDescription
Public propertyClickThroughUriGets or sets a Uri object that contains the Uri to additional information.
Public propertyClipUriGets or sets a Uri object that contains the clip source.
Public propertyDurationGets or sets the running time of the media clip.
Public propertyIsSmoothStreamingSourceGets or sets a Boolean value that indicates whether the media clip is in Smooth Streaming format.
Public propertySmoothStreamingCacheGets or sets the Smooth Streaming cache.
Public propertyUseSmoothStreamingCacheGets or sets a Boolean value that indicates whether to use the Smooth Streaming cache.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSetSourceSets the source for the clip. Enables setting the clip information on the clip MediaElement for extensibility purposes.
Public methodToString (Inherited from Object.)
Top

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.

Silverlight

Supported in: 5
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.