TRVCamReceiver.OnUserEnter, OnUserExit

<< Click to display table of contents >>

TRVCamReceiver.OnUserEnter, OnUserExit

Occurs in response to TRVCamSender.HelloToDefaultReceivers/GoodbyeToDefaultReceivers and HelloToAllowedSenders/GoodbyeToAllowedSenders.


  TRVUserEvent = procedure(Sender: TRVCamReceiver; SessionKey: TRVSessionKey;
    const GUIDUser: TRVMAnsiStringof object;

property OnUserEnter: TRVUserEvent;

property OnUserExit: TRVUserEvent;

This event occurs if a client is connected to TRVMediaServer via the network.


GUIDUser – identifier of the client which enters or exits.

If you perform time consuming operations inside an event, it makes sense to compare values of SessionKey parameter and SessionKey property, to make sure that a connection was not closed or reopened.