snapshot method

Future<V2TXLiveCode> snapshot()

Capture the video during playback

Return:

  • V2TXLIVE_OK: Succeed
  • V2TXLIVE_ERROR_REFUSED: The player is in a stopped state and is not allowed to invoke the screenshot operation

Implementation

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