MediaSettings class

Recording media settings.

Used in CameraPlatform.createCameraWithSettings. Allows to tune recorded video parameters, such as resolution, frame rate, bitrate. If fps, videoBitrate or audioBitrate are passed, they must be greater than zero.

Constructors

MediaSettings({ResolutionPreset? resolutionPreset, int? fps, int? videoBitrate, int? audioBitrate, bool enableAudio = false})
Creates a MediaSettings.
const

Properties

audioBitrate int?
The audio encoding bit rate for recording.
final
enableAudio bool
Controls audio presence in recorded video.
final
fps int?
Rate at which frames should be captured by the camera in frames per second.
final
hashCode int
The hash code for this object.
no setteroverride
resolutionPreset ResolutionPreset?
ResolutionPreset affect the quality of video recording and image capture.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
videoBitrate int?
The video encoding bit rate for recording.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override