takeRemoteSnapshot method

FutureOr<NSInteger> takeRemoteSnapshot(
  1. NSString streamId,
  2. id<ByteRTCVideoSnapshotCallbackDelegate> callback
)

@detail api @hiddensdk(audiosdk) @author wangfujun.911 @brief Take a snapshot of the remote video stream. @param streamId ID of the remote video stream for taking snapshot. @param callback See ByteRTCVideoSnapshotCallbackDelegate{@link #ByteRTCVideoSnapshotCallbackDelegate}. @return The index of the remote snapshot task, starting from 1.

Implementation

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