onTakeRemoteSnapshotResult method
FutureOr<void>
onTakeRemoteSnapshotResult(
- long taskId,
- String streamId,
- StreamInfo streamInfo,
- Bitmap image,
- int errorCode,
@detail callback
@brief Receives the callback after calling takeRemoteSnapshot{@link #RTCEngine#takeRemoteSnapshot}.
@param taskId The index for the remote snapshot, the same as the return value of takeRemoteSnapshot{@link #RTCEngine#takeRemoteSnapshot}.
@param streamId The ID of the remote stream.
@param streamInfo See StreamInfo{@link #StreamInfo}.
@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(long taskId, String streamId,
StreamInfo streamInfo, Bitmap image, int errorCode) async {}