takeRemoteSnapshot method

FutureOr<long> takeRemoteSnapshot(
  1. String streamId,
  2. ISnapshotResultCallback callback
)

@detail api @hiddensdk(audiosdk) @author wangfujun.911 @brief Takes a snapshot of the local video. @param streamId The streamId of the remote user. @param callback See ISnapshotResultCallback{@link #ISnapshotResultCallback}. @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<long> takeRemoteSnapshot(
    String streamId, ISnapshotResultCallback callback) async {
  return await nativeCall('takeRemoteSnapshot', [streamId, callback]);
}