pauseLive method

Future<RtmpResponse> pauseLive ()

暂停直播

Implementation

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