Methods for sending a file and arbitrary data.
AMediaIndex: Word = 0);
When connected to TRVMediaServer: The methods send data to the client specified in vGUIDTo (if vGUIDTo is empy, GUIDTo property is used instead). If they are empty, data are sent to clients belonging to the group having identifier vGUIDGroup (if vGUIDGroup is empty, GUIDGroup property is used instead). Otherwise, the command is sent to the default receivers (if they are defined).
When connected to TRVCamReceiver: The methods send data to the receiver, vGUIDTo may specify a receiver identifier (if vGUIDTo is empy, GUIDTo property is used instead). Group identifiers are ignored.
SendFile sends a file FileName (from the position (in bytes) defined in FileSeek parameter).
SendUserData sends data from AStream.
The optional AMediaIndex parameter allows defining the index of media channel, thus linking this file/data to this channel. In the most applications, you can leave this parameter equal to 0.
Files and data in different channels can be sent at the same time.
When TRVCamReceiver receives a file, OnReceivingFile, OnReceiveFileData, OnReceivedFile events occur.