Previous | Next |
Indicates a client stopped playing a file.
Syntax
NSUnicastMgr_OnClientStop( 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 stopped playing.
Remarks
This event is called whenever a client (using the Windows Media Player control or client control) stops playing a title. This event is never fired unless the ClientEvents property is set to True.
Example
Sub NSUnicastMgr_OnClientStop(DateTime, Status, ClientID, FileName)
MsgBox ("Client " & ClientID & " stopped playing " & FileName & ".")
End Sub
' MediaPlayer object on next line is instance of Windows Media Player
MediaPlayer.FileName = "mms://LocalHost/sample.asf"
MediaPlayer.Play
' Event at next line opens message box
MediaPlayer.Stop
See Also
OnClientConnect, OnClientDisconnect, OnClientPlay, OnClientStride
Previous | Next |