enableReceiveSeiMessage method
Enable reception of SEI messages
开启接收 SEI 消息
@param enable YES: Enable reception of SEI messages; NO: Disable reception of SEI messages. Default
: NO.
YES: 开启接收 SEI 消息; NO: 关闭接收 SEI 消息。【默认值】: NO。
@param payloadType Specify the payloadType for receiving SEI messages, supporting 5, 242, 243.
Please keep it consistent with the sender's payloadType.
指定接收 SEI 消息的 payloadType,支持 5、242、243,请与发送端的 payloadType 保持一致。
Implementation
Future<int> enableReceiveSeiMessage(bool isEnabled, int payloadType) async {
if (_isNeedDisposed) return -1;
await _initPlayer.future;
return await _livePlayerApi.enableReceiveSeiMessage(PlayerMsg(playerId: _playerId),
isEnabled, payloadType);
}