TRVCamReceiver.OnRequestJoinGroup

<< Click to display table of contents >>

TRVCamReceiver.OnRequestJoinGroup

Occurs in response to TRVCamSender.JoinGroup

type
  TRVJoinGroupEvent = procedure(Sender: TRVCamReceiver;
    SessionKey: TRVSessionKeyconst GUIDGroup: TRVMAnsiString;
    const AAccess: Boolean; const AError: Integer) of object;
property OnRequestJoinGroup: TRVJoinGroupEvent;

This event occurs when a pair of TRVCamSender and TRVCamReceiver (inside a single application) is connected to TRVMediaServer via the network as a client.

TRVCamSender.JoinGroup requests to join the specified group on the server. The server sends this information to a receiver, and OnRequestJoinGroup occurs.

Parameters:

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

AAccessTrue if the user successfully (extended information can be received from AError parameter)

AErrorerror (or success) code.

AError Value

Meaning

RV_ERROR_CMD_SUCCESS

The user successfully joined the group (no error).

RV_ERROR_CMD_BAD_PASSWORD

The user did not join the group because the supplied password was incorrect.

RV_ERROR_CMD_GROUP_EXISTS

The user did not join the group because this group does not exist on the server.

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:

OnGetAllGroups