TRVCamSender.AllowMediaAccess, CancelMediaAccess

Top  Previous  Next

The methods simplify management of default receivers.

procedure AllowMediaAccess(const GUID: TRVMAnsiString);
procedure CancelMediaAccess(const GUID: TRVMAnsiString);

These methods are useful when TRVCamSender is connected to TRVMediaServer as a part of a client.

AllowMediaAccess allows sending video and audio to another client identified by GUID (it is implemented by adding that client to the list of default receivers). Usually, this method is called from TRVCamReceiver.OnMediaAccessRequest event.

CancelMediaAccess stops sending video and audio to another client identified by GUID (it is implemented by excluding that client from the list of default receivers). Usually, this method is called from TRVCamReceiver.OnMediaAccessCancelRequest event.

See the example in the topic about SendMediaAccessRequest and SendMediaAccessCancelRequest.