sendMetaData abstract method

Future<void> sendMetaData({
  1. required Metadata metadata,
  2. required VideoSourceType sourceType,
})

Sends media metadata.

If the metadata is sent successfully, the SDK triggers the onMetadataReceived callback on the receiver.

  • metadata Media metadata. See Metadata.
  • sourceType The type of the video source. See VideoSourceType.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. < 0: Failure.

Implementation

Future<void> sendMetaData(
    {required Metadata metadata, required VideoSourceType sourceType});