takeLocalSnapshot method

FutureOr<NSInteger> takeLocalSnapshot(
  1. id<ByteRTCVideoSnapshotCallbackDelegate> callback
)

@detail api @hiddensdk(audiosdk) @author wangfujun.911 @brief 截取本地视频画面 @param callback 本地截图的回调。参看 ByteRTCVideoSnapshotCallbackDelegate{@link #ByteRTCVideoSnapshotCallbackDelegate}。 @return 本地截图任务的编号,从 1 开始递增。 @note - 对截取的画面,包含本地视频处理的全部效果,包含旋转,镜像,美颜等。 - 不管采用 SDK 内部采集,还是自定义采集,都可以进行截图。

Implementation

FutureOr<NSInteger> takeLocalSnapshot(
    id<ByteRTCVideoSnapshotCallbackDelegate> callback) async {
  return await nativeCall('takeLocalSnapshot:', [callback]);
}