TRVCamReceiver.OnUserJoinsGroup, OnUserLeavesGroup

Top  Previous  Next

Occurs in response to TRVCamSender.JoinGroup and LeaveGroup.

type

  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.

Parameters:

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.

See also

OnGetGroupUsers