snapshot method

Future<V2TXLiveCode> snapshot()

截取推流过程中的本地画面。

@return 返回值 {@link V2TXLiveCode}

  • V2TXLIVE_OK: 成功
  • V2TXLIVE_ERROR_REFUSED: 已经停止推流,不允许调用截图操作

Implementation

Future<V2TXLiveCode> snapshot() async {
  var result = await _channel.invokeMethod('snapshot', {});
  return _liveCodeWithResult(result);
}