sendSEI method

Future<void> sendSEI(
  1. Uint8List data,
  2. int dataLength,
  3. {ZegoPublishChannel? channel}
)

Sends Supplemental Enhancement Information to the specified publish channel.

Available since: 1.1.0 Description: While pushing the stream to transmit the audio and video stream data, the stream media enhancement supplementary information is sent to synchronize some other additional information. Use cases: Generally used in scenes such as synchronizing music lyrics or precise video layout, you can choose to send SEI. When to call: After starting to push the stream startPublishingStream. Restrictions: Do not exceed 30 times per second, and the SEI data length is limited to 4096 bytes. Caution: 1. Due to network issues, frame loss may occur, which means SEI information may also be lost. To address this situation, it is advisable to send it multiple times within a limited frequency. 2. Even if the enableCamera interface is called to turn off the camera or mutePublishStreamVideo is used to stop sending video data, SEI can still be successfully sent; as long as the playback side does not call the mutePlayStreamVideo interface to stop pulling audio data, SEI can still be received normally. 3. If the SDK does not support the video module but does support the SEI functional module, SEI information can still be sent normally. Related APIs: After the pusher sends the SEI, the puller can obtain the SEI content by monitoring the callback of onPlayerRecvSEI.

  • data SEI data.
  • dataLength SEI data length.
  • channel Publish stream channel.

Implementation

Future<void> sendSEI(Uint8List data, int dataLength,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .sendSEI(data, dataLength, channel: channel);
}