MediaSettings constructor
const
MediaSettings({
- ResolutionPreset? resolutionPreset,
- int? fps,
- int? videoBitrate,
- int? audioBitrate,
- bool enableAudio = false,
Creates a MediaSettings.
Implementation
const MediaSettings({
this.resolutionPreset,
this.fps,
this.videoBitrate,
this.audioBitrate,
this.enableAudio = false,
}) : assert(fps == null || fps > 0, 'fps must be null or greater than zero'),
assert(videoBitrate == null || videoBitrate > 0,
'videoBitrate must be null or greater than zero'),
assert(audioBitrate == null || audioBitrate > 0,
'audioBitrate must be null or greater than zero');