MediaRecorderOptions constructor

MediaRecorderOptions({
  1. String? mimeType,
  2. int? audioBitsPerSecond,
  3. int? videoBitsPerSecond,
  4. int? bitsPerSecond,
  5. BitrateMode? audioBitrateMode,
})

Implementation

factory MediaRecorderOptions(
        {String? mimeType,
        int? audioBitsPerSecond,
        int? videoBitsPerSecond,
        int? bitsPerSecond,
        BitrateMode? audioBitrateMode}) =>
    MediaRecorderOptions._(
        mimeType: mimeType ?? '',
        audioBitsPerSecond: audioBitsPerSecond ?? undefined,
        videoBitsPerSecond: videoBitsPerSecond ?? undefined,
        bitsPerSecond: bitsPerSecond ?? undefined,
        audioBitrateMode:
            audioBitrateMode?.value ?? BitrateMode.variable.value);