takeLocalSnapshot method
@detail api
@hiddensdk(audiosdk)
@author wangfujun.911
@brief Take a snapshot of the local video.
@param callback See ByteRTCVideoSnapshotCallbackDelegate{@link #ByteRTCVideoSnapshotCallbackDelegate}.
@return The index of the local snapshot task, starting from 1.
@note
- The snapshot is taken with all video effects on, like rotation, and mirroring.
- You can take the snapshot either using SDK internal video capture or customized capture.
Implementation
FutureOr<NSInteger> takeLocalSnapshot(
id<ByteRTCVideoSnapshotCallbackDelegate> callback) async {
return await nativeCall('takeLocalSnapshot:', [callback]);
}