sendStreamSyncInfo abstract method
Sends audio stream synchronization information.
This method sends the message to the remote end via an audio stream and synchronizes it with the audio stream.
The data
length must be [1, 16]
bytes.
Returned value:
-
>=0
: Message sent successfully. Returns the number of successful sends -
-1
: Message sending failed. The message length is greater than 255 bytes. -
-2
: Message sending failed. The message content is empty. -
-3
: Message sending failed. This screen stream was not published when the message was synchronized through the screen stream. -
-4
: Message sending failed. This audio stream is not yet published when you synchronize messages with an audio stream captured by a microphone or custom device, as described in ErrorCode. -
Regarding the frequency, we recommend no more than 50 calls per second.
-
After a successful call to this API, the remote user will receive RTCVideoEventHandler.onStreamSyncInfoReceived.
Implementation
Future<int?> sendStreamSyncInfo({
required Uint8List data,
required StreamSyncInfoConfig config,
});