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

ClipEventArgs Class

Class used by media clips to pass event argument information that contains an associated clip context instance.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
public class ClipEventArgs : EventArgs

The ClipEventArgs type exposes the following members.

  NameDescription
Public propertyContextGets or sets the Context property.
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.)
Public methodToString (Inherited from Object.)
Top

If the user clicks on the SmoothStreamingMediaElement surface while an inserted clip is playing, the delegate method that handles the event can access the ClipContext()()()() from the ClipEventArgs. The ClipInformation property contains the ClickThroughUrl()()()() that was assigned when the ClipInformation object was initialized.

The following delegate opens a new browser window for the ClickThroughUrl()()()().

void SmoothPlayer_ClipClickThrough(object sender, ClipEventArgs e)
    {
        System.Windows.Browser.HtmlPage.Window.Navigate(e.Context.ClipInformation.ClickThroughUrl, "_newWindow");
    }

Silverlight

Supported in: 4
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.