onTakeLocalSnapshotResult$videoSource$image$errorCode method
FutureOr<void>
onTakeLocalSnapshotResult$videoSource$image$errorCode(
- NSInteger taskId,
- ByteRTCVideoSource videoSource,
- dynamic image,
- NSInteger errorCode,
@detail callback
@brief Receives the callback after calling takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot}.
@param taskId The index for the snapshot, the same as the return value of takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot}.
@param videoSource See ByteRTCVideoSource{@link #ByteRTCVideoSource}.
@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> onTakeLocalSnapshotResult$videoSource$image$errorCode(
NSInteger taskId,
ByteRTCVideoSource videoSource,
ByteRTCImage image,
NSInteger errorCode) async {}