sendSeiMessage method

Future<V2TXLiveCode> sendSeiMessage(
  1. int payloadType,
  2. Uint8List data
)

Send an SEI message

The player receives the message via the V2TXLivePlayerListenerType.onReceiveSeiMessage callback.

Parameter:

payloadType Data type, 5, 242 supported. Recommended: 242

data Data to be sent

Return:

'0' success, more information please see V2TXLiveCode

Implementation

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