takeSnapshotWithConfig abstract method
Takes a video snapshot at the specified observation point.
This method takes a snapshot of the specified user's video stream, generates a JPG image, and saves it to the specified path. This method is asynchronous. When the call returns, the SDK has not actually captured the snapshot. When used for local video snapshot, it captures the video stream specified in ChannelMediaOptions.
uidUser ID. Set to 0 to capture the local user's video.configSnapshot configuration. See SnapshotConfig.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> takeSnapshotWithConfig(
{required int uid, required SnapshotConfig config});