VideoConfiguration constructor
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,
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);