takeRemoteSnapshot method

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

@detail api @author wangfujun.911 @brief 截取远端视频画面,并保存到本地指定路径。 @param streamId 截图的视频流对应的 ID。 @param callback 参看 ByteRTCVideoSnapshotCallbackDelegate{@link #ByteRTCVideoSnapshotCallbackDelegate}。 @return 远端截图任务的编号,从 1 开始递增。

Implementation

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