CameraCaptureOptions class

Options used when creating a LocalVideoTrack that captures the camera.

Inheritance

Constructors

CameraCaptureOptions({CameraPosition cameraPosition = CameraPosition.front, CameraFocusMode focusMode = CameraFocusMode.auto, CameraExposureMode exposureMode = CameraExposureMode.auto, String? deviceId, double? maxFrameRate, VideoParameters params = VideoParametersPresets.h720_169, bool stopCameraCaptureOnMute = true, TrackProcessor<VideoProcessorOptions>? processor})
const
CameraCaptureOptions.from({required VideoCaptureOptions captureOptions})

Properties

cameraPosition → CameraPosition
final
deviceId → String?
The deviceId of the capture device to use. Available deviceIds can be obtained through flutter_webrtc:
finalinherited
exposureMode → CameraExposureMode
The exposure mode to use for the camera.
final
focusMode → CameraFocusMode
The focus mode to use for the camera.
final
hashCode → int
The hash code for this object.
no setterinherited
maxFrameRate → double?
finalinherited
params → VideoParameters
finalinherited
processor → TrackProcessor<VideoProcessorOptions>?
A processor to apply to the video track.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stopCameraCaptureOnMute → bool
set to false to only toggle enabled instead of stop/replaceTrack for muting
final

Methods

copyWith({CameraPosition? cameraPosition, CameraFocusMode? focusMode, CameraExposureMode? exposureMode, String? deviceId, double? maxFrameRate, VideoParameters? params, bool? stopCameraCaptureOnMute, TrackProcessor<VideoProcessorOptions>? processor}) → CameraCaptureOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMediaConstraintsMap() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited