VideoConfiguration constructor

VideoConfiguration({
  1. required String contentType,
  2. required int width,
  3. required int height,
  4. required int bitrate,
  5. required double framerate,
  6. bool? hasAlphaChannel,
  7. HdrMetadataType? hdrMetadataType,
  8. ColorGamut? colorGamut,
  9. TransferFunction? transferFunction,
  10. String? scalabilityMode,
  11. bool? spatialScalability,
})

Implementation

factory VideoConfiguration(
        {required String contentType,
        required int width,
        required int height,
        required int bitrate,
        required double framerate,
        bool? hasAlphaChannel,
        HdrMetadataType? hdrMetadataType,
        ColorGamut? colorGamut,
        TransferFunction? transferFunction,
        String? scalabilityMode,
        bool? spatialScalability}) =>
    VideoConfiguration._(
        contentType: contentType,
        width: width,
        height: height,
        bitrate: bitrate,
        framerate: framerate,
        hasAlphaChannel: hasAlphaChannel ?? undefined,
        hdrMetadataType: hdrMetadataType?.value ?? undefined,
        colorGamut: colorGamut?.value ?? undefined,
        transferFunction: transferFunction?.value ?? undefined,
        scalabilityMode: scalabilityMode ?? undefined,
        spatialScalability: spatialScalability ?? undefined);