sendSEIMsg method Null safety

Future<int> sendSEIMsg(
  1. String seiMsg,
  2. {int streamType = NERtcVideoStreamType.main}
)

Send the SEI message By default, the SEI is transmitted by using the mainstream For more information, see NERtcChannelEventCallback.onReceiveSEIMsg This API has the following limits:

  • The maximum size of the SEI data is 4 KB. If a large amount of data is sent, the video bitrate rises. This degrades video quality or causes frozen frames.
  • The transmission frequency. We recommend that the maximum video frame rate does not exceed 10 fps.
  • After the method is called, the SEI data is sent after the next frame in the earliest or after the next 5 frames at the slowest pace.
  • The SEI data may get lost due to weak network. We recommend you send multiple times to ensure the SEI data be received at the receiver *To transmit the SEI data, you must first enable the data transmission channel

seiMsg sei data. The maximum size cannot exceed 4 KB. streamType specifies which video channel (mainstream or substream) to send the SEI data. NERtcVideoStreamType

Implementation

Future<int> sendSEIMsg(String seiMsg,
    {int streamType = NERtcVideoStreamType.main}) async {
  IntValue reply = await _api.sendSEIMsg(SendSEIMsgRequest()
    ..seiMsg = seiMsg
    ..streamType = streamType);
  return reply.value ?? -1;
}