enableReceiveSeiMessage method

Future<V2TXLiveCode> enableReceiveSeiMessage(
  1. bool enable,
  2. int payloadType
)

Turn on receiving SEI messages

Parameter:

enable true: Enable receiving SEI messages; false: Disables receiving SEI messages. Default: false

'payloadType' specifies the payloadType to receive SEI messages, 5 and 242 are supported, please be consistent with the payloadType of the sender.

Return:

'0' success, more information please see V2TXLiveCode

Implementation

Future<V2TXLiveCode> enableReceiveSeiMessage(
    bool enable, int payloadType) async {
  var result = await _channel.invokeMethod('enableReceiveSeiMessage',
      {"enable": enable, "payloadType": payloadType});
  return _liveCodeWithResult(result);
}