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 Receives the callback after calling takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback}. @param taskId The index for the remote snapshot, the same as the return value of takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback}. @param streamId The ID of the remote video stream. @param info See ByteRTCStreamInfo{@link #ByteRTCStreamInfo}. @param image The snapshot image. If the snapshot task fails, the value is null. @param errorCode Error code:
- 0: Success. - -1: Failure. Fails to generate the image. - -2: Failure. The stream is invalid. - -3: Failure. snapshot timeout, default 1s.

Implementation

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