TRVCamReceiver.OnReceiveCmdData

<< Click to display table of contents >>

TRVCamReceiver.OnReceiveCmdData

Occurs in response to TRVCamSender.SendCmd

type // defined in MRVType unit

  TRVCmdReadEvent = procedure(Sender: TObject; SessionKey: TRVSessionKey

  Cmd: TRVCmd; ASocket: TRVSocket; nGUIDFrom, nGUIDTo, nGUIDGroup : TGUID;

  AMediaIndex : Word) of object;

property OnReceiveCmdData: TRVCmdReadEvent;

This event occurs after the receiver receives a command sent by TRVCamSender (either directly or via TRVMediaServer).

Parameters:

Cmd – the command and its parameters.

nGUIDFrom – identifier of the sender which sent the command (TRVCamSender.GUIDFrom)

nGUIDGroup – identifier of the group on the server, if this command was sent to a group.

AMediaIndex – index of the sender's media channel.

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.

By default, this event is not called when receiving system commands (having names starting from 'RV_' or 'RVS_'). If you want to call this event for these commands (for example, for debugging), assign FilterSystemCmd=False.