Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSPlaylist.FireEvent (Visual Basic .NET)
The FireEvent method sends the specified event to the broadcast publishing point's shared playlist object.
Syntax
Playlist .FireEvent( pbstrEventName As String )
Parameters
pbstrEventName
[in] String containing the event name.
Return Values
This method does not return a value.
Remarks
In order to achieve a faster stream switch, the CueStream method should be called prior to the FireEvent method. Send the specified event to the playlist. The event being trapped must be associated with a media element that is a child element of an excl time container.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub SendEvent()
' Declare variables.
Dim Server As WMSServer
Dim Players As IWMSPlayers
Dim Player As IWMSPlayer
Dim Playlist As IWMSPlaylist
Dim strEvent As String
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSPlayers object.
Players = Server.Players
' Retrieve information about each requested playlist.
For Each Player In Players
' Retrieve the playlist requested by the client
' if one exists.
Playlist = Player.RequestedPlaylist
' Send the event for the requested playlist.
strEvent = "excl1_Event"
Playlist.FireEvent(strEvent)
Next
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
| Previous | Next |