onRemoteSnapshotTakenToFile method

FutureOr<void> onRemoteSnapshotTakenToFile(
  1. String streamId,
  2. StreamInfo streamInfo,
  3. String filePath,
  4. int width,
  5. int height,
  6. SnapshotErrorCode errorCode,
  7. long taskId,
)

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

Implementation

FutureOr<void> onRemoteSnapshotTakenToFile(
    String streamId,
    StreamInfo streamInfo,
    String filePath,
    int width,
    int height,
    SnapshotErrorCode errorCode,
    long taskId) async {}