TRVCamReceiver.OnUserJoinsGroup, OnUserLeavesGroup

<< Click to display table of contents >>

TRVCamReceiver.OnUserJoinsGroup, OnUserLeavesGroup

Occurs in response to TRVCamSender.JoinGroup and LeaveGroup.


  TRVGroupEvent = procedure(Sender: TRVCamReceiver;

    SessionKey: TRVSessionKey;
    const GUIDGroup, GUIDUser: TRVMAnsiStringof object;

property OnUserJoinsGroup: TRVGroupEvent;

property OnUserLeavesGroup: TRVGroupEvent;

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


GUIDGroup – identifier of the group (the same as the parameter of TRVCamSender JoinGroup and LeaveGroup)

GUIDUser – identifier of the client which joins or leaves the group.

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.

Warning: Do not display modal forms in this event.

See also