AudioConfiguration Class

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

public sealed class AudioConfiguration

Constructors

NameDescription
AudioConfiguration()

AudioConfiguration()

  • 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 AudioConfiguration()

No documentation is available.

Properties

NameDescription
BitrateGets the average bitrate in bits per second, or null.
ChannelsGets the channels of the track (e.g. 2, or 5.1 for 6 channels), or null.
ContentTypeGets the MIME type of the track: a container with the codecs parameter (e.g. audio/webm; codecs="opus"), a type of a single codec (e.g. audio/mpeg), or an RTP payload format for webrtc (e.g. audio/opus).
SamplerateGets the sample rate in Hz, or null.
SpatialRenderingGets whether the audio must be rendered spatially, or null.

Gets the average bitrate in bits per second, or null.

public ulong? Bitrate { get; init; }

Gets the channels of the track (e.g. 2, or 5.1 for 6 channels), or null.

public string? Channels { get; init; }

Gets the MIME type of the track: a container with the codecs parameter (e.g. audio/webm; codecs="opus"), a type of a single codec (e.g. audio/mpeg), or an RTP payload format for webrtc (e.g. audio/opus).

public required string ContentType { get; init; }

Gets the sample rate in Hz, or null.

public uint? Samplerate { get; init; }

Gets whether the audio must be rendered spatially, or null.

public bool? SpatialRendering { get; init; }