VideoEncoderConfig constructor
VideoEncoderConfig({
- required String codec,
- required int width,
- required int height,
- int? displayWidth,
- int? displayHeight,
- int? bitrate,
- double? framerate,
- HardwareAcceleration? hardwareAcceleration,
- AlphaOption? alpha,
- String? scalabilityMode,
- BitrateMode? bitrateMode,
- LatencyMode? latencyMode,
Implementation
factory VideoEncoderConfig(
{required String codec,
required int width,
required int height,
int? displayWidth,
int? displayHeight,
int? bitrate,
double? framerate,
HardwareAcceleration? hardwareAcceleration,
AlphaOption? alpha,
String? scalabilityMode,
BitrateMode? bitrateMode,
LatencyMode? latencyMode}) =>
VideoEncoderConfig._(
codec: codec,
width: width,
height: height,
displayWidth: displayWidth ?? undefined,
displayHeight: displayHeight ?? undefined,
bitrate: bitrate ?? undefined,
framerate: framerate ?? undefined,
hardwareAcceleration: hardwareAcceleration?.value ??
HardwareAcceleration.noPreference.value,
alpha: alpha?.value ?? AlphaOption.discard.value,
scalabilityMode: scalabilityMode ?? undefined,
bitrateMode: bitrateMode?.value ?? BitrateMode.variable.value,
latencyMode: latencyMode?.value ?? LatencyMode.quality.value);