VideoEncoderConfig constructor

VideoEncoderConfig({
  1. AlphaOption? alpha,
  2. AvcEncoderConfig? avc,
  3. num? bitrate,
  4. VideoEncoderBitrateMode? bitrateMode,
  5. String? codec,
  6. num? displayHeight,
  7. num? displayWidth,
  8. num? framerate,
  9. HardwareAcceleration? hardwareAcceleration,
  10. num? height,
  11. LatencyMode? latencyMode,
  12. String? scalabilityMode,
  13. num? width,
})

Implementation

factory VideoEncoderConfig({
  _i3.AlphaOption? alpha,
  _i3.AvcEncoderConfig? avc,
  _i2.num? bitrate,
  _i3.VideoEncoderBitrateMode? bitrateMode,
  _i2.String? codec,
  _i2.num? displayHeight,
  _i2.num? displayWidth,
  _i2.num? framerate,
  _i3.HardwareAcceleration? hardwareAcceleration,
  _i2.num? height,
  _i3.LatencyMode? latencyMode,
  _i2.String? scalabilityMode,
  _i2.num? width,
}) =>
    VideoEncoderConfig._(
      alpha: alpha?.name ?? _i6.undefined,
      avc: avc ?? _i6.undefined,
      bitrate: bitrate,
      bitrateMode: bitrateMode?.name ?? _i6.undefined,
      codec: codec,
      displayHeight: displayHeight,
      displayWidth: displayWidth,
      framerate: framerate,
      hardwareAcceleration: hardwareAcceleration?.name ?? _i6.undefined,
      height: height,
      latencyMode: latencyMode?.name ?? _i6.undefined,
      scalabilityMode: scalabilityMode,
      width: width,
    );