Previous | Next |
Indicates a client started to play a title.
Syntax
NSUnicastMgr_OnClientPlay( DateTime, Status, ClientID, FileName )
Parameters
DateTime
A Date value indicating when the event occurred, expressed in Greenwich mean time.
Status
A Long value specifying the HRESULT error code passed back when this event is fired.
ClientID
A Long value specifying the client ID.
FileName
A String value containing the name of the title that the client is playing.
Remarks
This event is called whenever a client (using the Windows Media Player control or client control) plays a file. This event is never fired unless the ClientEvents property is set to True.
Example
Sub NSUnicastMgr_OnClientPlay( DateTime, Status, ClientID, FileName )
MsgBox ("Client " & ClientID & " is playing " & FileName & ".")
End Sub
' MediaPlayer object on next line is instance of Microsoft Windows Media Player
MediaPlayer.FileName = "mms://LocalHost/sample.asf"
' Event at next line opens message box
MediaPlayer.Play
See Also
OnClientConnect, OnClientDisconnect, OnClientStop, OnClientStride
Previous | Next |