TRVCamReceiver.OnUserEnter, OnUserExit

Top  Previous  Next

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

type

  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.

Parameters:

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.