rtcEngine$onRemoteSnapshotTakenToFile$info$filePath$width$height$errorCode$taskId method

FutureOr<void> rtcEngine$onRemoteSnapshotTakenToFile$info$filePath$width$height$errorCode$taskId(
  1. ByteRTCEngine engine,
  2. NSString streamId,
  3. ByteRTCStreamInfo info,
  4. NSString filePath,
  5. NSInteger width,
  6. NSInteger height,
  7. ByteRTCSnapshotErrorCode errorCode,
  8. NSInteger taskId,
)

@detail callback @valid since 3.60. @brief 调用 takeRemoteSnapshotToFile:filePath:{@link #ByteRTCEngine#takeRemoteSnapshotToFile:filePath} 截取视频画面时,会收到此回调报告截图是否成功,以及截取的图片信息。 @param engine ByteRTCEngine 对象。 @param streamId 被截图的视频流 ID。 @param info 视频流信息,参考 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。 @param filePath 截图文件的保存路径。 @param width 截图图像的宽度。单位:像素。 @param height 截图图像的高度。单位:像素。 @param errorCode 截图错误码。参看 ByteRTCSnapshotErrorCode{@link #ByteRTCSnapshotErrorCode}。 @param taskId 截图任务的编号,和 takeRemoteSnapshotToFile:filePath:{@link #ByteRTCEngine#takeRemoteSnapshotToFile:filePath} 的返回值一致。

Implementation

FutureOr<void>
    rtcEngine$onRemoteSnapshotTakenToFile$info$filePath$width$height$errorCode$taskId(
        ByteRTCEngine engine,
        NSString streamId,
        ByteRTCStreamInfo info,
        NSString filePath,
        NSInteger width,
        NSInteger height,
        ByteRTCSnapshotErrorCode errorCode,
        NSInteger taskId) async {}