TRVCamSender.SendFile, SendUserData

Top  Previous  Next

Methods for sending a file and arbitrary data.

procedure SendFile(FileName: String; FileSeek: Int64 = 0;
  vGUIDTo: TRVMAnsiString = ''; vGUIDGroup: TRVMAnsiString = '');
procedure SendUserData(AStream: TMemoryStream;
  vGUIDTo: TRVMAnsiString = ''; TRVMAnsiString: TRVMAnsiString = '');

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.