stopLive method

Future<RtmpResponse> stopLive ()

停止直播

Implementation

Future<RtmpResponse> stopLive() async {
  if (_statue == RtmpStatue.pause || _statue == RtmpStatue.stop)
    return RtmpResponse.succeed();
  RtmpResponse res = RtmpResponse.fromData(
      await _configChannel.invokeMethod("stopLive", {}));
  if (res.isOk) {
    _statue = RtmpStatue.stop;
  }
  return res;
}