living method

Future<RtmpResponse> living (
  1. {@required String url}
)

开始直播

Implementation

Future<RtmpResponse> living({@required String url}) async {
  if (_statue == RtmpStatue.living) return RtmpResponse.succeed();
  RtmpResponse res = RtmpResponse.fromData(
      await _configChannel.invokeMethod("startLive", {"url": url}));
  if (res.isOk) {
    _statue = RtmpStatue.living;
  }
  return res;
}