OnClientPlay Event

Indicates a client started to play a title.

Syntax

NSUnicastMgr_OnClientPlay( datetime, status, clientid, filename )

Parameters

datetime

A Date value indicating the time the event occurred, expressed in Greenwich Mean Time (GMT).

status

A Long value specifying the HRESULT passed back when this event is fired.

clientid

A Long value specifying the client ID.

filename

A String containing the name of the title the client is playing.

Remarks

This event is called whenever a client (using the NetShow Player or client control) plays a file. To receive notification of this event, the ClientEvents property must first be set to TRUE.

Example

Sub NSUnicastMgr_OnClientPlay(datetime, status, clientid, filename)
  MsgBox( "client " & clientid " playing " & filename )
End Sub
' MediaPlayer object on next line is instance of Microsoft Media Player
MediaPlayer.FileName = "mms://LocalHost/sample.asf"
' event at next line opens message box
MediaPlayer.Play

See Also

OnClientConnect, OnClientDisconnect, OnClientStop, OnClientStride

© 1996-1998 Microsoft Corporation. All rights reserved.