ClipEventArgs Class
Class used by media clips to pass event argument information that contains an associated clip context instance.
Inheritance Hierarchy
System.Object
System.EventArgs
Microsoft.Web.Media.SmoothStreaming.ClipEventArgs
Microsoft.Web.Media.SmoothStreaming.ClipPlaybackEventArgs
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
Syntax
'Declaration
Public Class ClipEventArgs _
Inherits EventArgs
'Usage
Dim instance As ClipEventArgs
public class ClipEventArgs : EventArgs
public ref class ClipEventArgs : public EventArgs
type ClipEventArgs =
class
inherit EventArgs
end
public class ClipEventArgs extends EventArgs
The ClipEventArgs type exposes the following members.
Properties
Name | Description | |
---|---|---|
Context | Gets or sets the Context property. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Remarks
For more information, see Scheduling Media Clips.
Examples
If the user clicks on the SmoothStreamingMediaElement surface while an inserted clip is playing, the delegate method that handles the event can access the Microsoft.Web.Media.SmoothStreaming.ClipContext from the ClipEventArgs. The ClipInformation property contains the Microsoft.Web.Media.SmoothStreaming.ClipInformation.ClickThroughUrl that was assigned when the ClipInformation object was initialized.
The following delegate opens a new browser window for the Microsoft.Web.Media.SmoothStreaming.ClipInformation.ClickThroughUrl.
void SmoothPlayer_ClipClickThrough(object sender, ClipEventArgs e)
{
System.Windows.Browser.HtmlPage.Window.Navigate(e.Context.ClipInformation.ClickThroughUrl, "_newWindow");
}
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.