onTakeLocalSnapshotResult$videoSource$image$errorCode method

FutureOr<void> onTakeLocalSnapshotResult$videoSource$image$errorCode(
  1. NSInteger taskId,
  2. ByteRTCVideoSource videoSource,
  3. dynamic image,
  4. NSInteger errorCode,
)

@detail callback @brief 调用 takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot} 截取视频画面时,收到此回调。 @param taskId 本地截图任务的编号。和 takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot} 的返回值一致。 @param videoSource 截图的视频流的属性,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。 @param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。 @param errorCode 截图错误码:
- 0: 成功 - -1: 截图错误。生成图片数据失败或 RGBA 编码失败 - -2: 截图错误。流无效。 - -3: 截图错误。截图超时,超时时间 1 秒。

Implementation

FutureOr<void> onTakeLocalSnapshotResult$videoSource$image$errorCode(
    NSInteger taskId,
    ByteRTCVideoSource videoSource,
    ByteRTCImage image,
    NSInteger errorCode) async {}