sendPublicStreamSEIMessage method

FutureOr<int> sendPublicStreamSEIMessage(
  1. int channelId,
  2. NSData message,
  3. int repeatCount,
  4. ByteRTCSEICountPerFrame mode,
)

@hidden for internal use only @valid since 3.56 @detail api @hiddensdk(audiosdk) @author wangzhanqiang @brief <span id="IRTCVideo-sendseimessage-2"></span> WTN stream sends SEI data. @param channelId SEI message channel id. The value range is 0 - 255. With this parameter, you can set different ChannelIDs for different recipients. In this way, different recipients can choose the SEI information based on the ChannelID received in the callback. @param message SEI data. @param repeatCount Number of times a message is sent repeatedly. The value range is 0, max{29, \%{video frame rate}-1}. Recommended range: 2,4.
After calling this API, the SEI data will be added to a consecutive repeat_count+1 number of video frames starting from the current frame. @param mode SEI sending mode. See ByteRTCSEICountPerFrame{@link #ByteRTCSEICountPerFrame}. @return - < 0:Failure. - = 0:Failure because the SEI sending queue was full. - > 0: Success. The value indicated the number of the SEI sent. @note - We recommend the number of SEI messages per second should not exceed the current video frame rate. - In a video call, the custom captured video frame can also be used for sending SEI data if the original video frame contains no SEI data, otherwise calling this method will not take effect. - Each video frame carrys only the SEI data received within 2s before and after. In a voice call scenario, if no SEI data is sent within 1min after calling this API, SDK will automatically cancel publishing black frames. - After the message is sent successfully, the remote user who subscribed your video stream will receive rtcEngine:onPublicStreamSEIMessageReceivedWithChannel:andChannelId:andMessage:. - When the call fails, neither the local nor the remote side will receive a callback.

Implementation

FutureOr<int> sendPublicStreamSEIMessage(int channelId, NSData message,
    int repeatCount, ByteRTCSEICountPerFrame mode) async {
  return await nativeCall(
      'sendPublicStreamSEIMessage:andMessage:andRepeatCount:andCountPerFrame:',
      [channelId, message, repeatCount, mode.$value]);
}