startLivePlay method

Future<V2TXLiveCode> startLivePlay(
  1. String url
)

Start playing the audio and video stream

Parameter:

url The playback URL of the audio and video stream, which supports RTMP, HTTP-FLV, and TRTC.

Return:

'0' success, more information please see V2TXLiveCode

Implementation

Future<V2TXLiveCode> startLivePlay(String url) async {
  var result = await _channel.invokeMethod('startLivePlay', {"url": url});
  return _liveCodeWithResult(result);
}