VideoConfiguration Class

The video track of a configuration of MediaCapabilities (https://w3c.github.io/media-capabilities/#dictdef-videoconfiguration).

public sealed class VideoConfiguration

Constructors

NameDescription
VideoConfiguration()

VideoConfiguration()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public VideoConfiguration()

No documentation is available.

Properties

NameDescription
BitrateGets the bitrate in bits per second (the average of a constant bitrate, the maximum of a variable bitrate).
ColorGamutGets the color gamut of the track, or null. Only for the file and media-source decoding types.
ContentTypeGets the MIME type of the track: a container with the codecs parameter (e.g. video/webm; codecs="vp8"), or an RTP payload format for webrtc (e.g. video/VP8).
FramerateGets the number of frames per second: a finite positive number.
HasAlphaChannelGets whether the frames have an alpha channel, or null when it is not specified.
HdrMetadataTypeGets the type of the HDR metadata of the track, or null. Only for the file and media-source decoding types.
HeightGets the height of the frames in pixels.
ScalabilityModeGets the scalability mode of WebRTC (e.g. L1T2), or null. Only for the webrtc encoding type.
SpatialScalabilityGets whether the decoder must decode the spatial scalability modes, or null. Only for the decoding types.
TransferFunctionGets the transfer function of the track, or null. Only for the file and media-source decoding types.
WidthGets the width of the frames in pixels.

Gets the bitrate in bits per second (the average of a constant bitrate, the maximum of a variable bitrate).

public required ulong Bitrate { get; init; }

Gets the color gamut of the track, or null. Only for the file and media-source decoding types.

public ColorGamut? ColorGamut { get; init; }

Gets the MIME type of the track: a container with the codecs parameter (e.g. video/webm; codecs="vp8"), or an RTP payload format for webrtc (e.g. video/VP8).

public required string ContentType { get; init; }

Gets the number of frames per second: a finite positive number.

public required double Framerate { get; init; }

Gets whether the frames have an alpha channel, or null when it is not specified.

public bool? HasAlphaChannel { get; init; }

Gets the type of the HDR metadata of the track, or null. Only for the file and media-source decoding types.

public HdrMetadataType? HdrMetadataType { get; init; }

Gets the height of the frames in pixels.

public required uint Height { get; init; }

Gets the scalability mode of WebRTC (e.g. L1T2), or null. Only for the webrtc encoding type.

public string? ScalabilityMode { get; init; }

Gets whether the decoder must decode the spatial scalability modes, or null. Only for the decoding types.

public bool? SpatialScalability { get; init; }

Gets the transfer function of the track, or null. Only for the file and media-source decoding types.

public TransferFunction? TransferFunction { get; init; }

Gets the width of the frames in pixels.

public required uint Width { get; init; }