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);
}