sendMetaData abstract method

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

Sends media metadata.

If the metadata is sent successfully, the receiver receives the onMetadataReceived callback.

  • metadata The media metadata. See Metadata.
  • sourceType The type of 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. See Error Codes for details and resolution suggestions. < 0: The method call fails. See Error Codes for details and resolution suggestions.

Implementation

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