onTakeRemoteSnapshotResult$streamId$info$image$errorCode method

FutureOr<void> onTakeRemoteSnapshotResult$streamId$info$image$errorCode(
  1. NSInteger taskId,
  2. NSString streamId,
  3. ByteRTCStreamInfo info,
  4. dynamic image,
  5. NSInteger errorCode,
)

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

Implementation

FutureOr<void> onTakeRemoteSnapshotResult$streamId$info$image$errorCode(
    NSInteger taskId,
    NSString streamId,
    ByteRTCStreamInfo info,
    ByteRTCImage image,
    NSInteger errorCode) async {}