AudioConfiguration Class
The audio track of a configuration of MediaCapabilities (https://w3c.github.io/media-capabilities/#dictdef-audioconfiguration).
public sealed class AudioConfigurationConstructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Bitrate | Gets the average bitrate in bits per second, or null. |
| Channels | Gets the channels of the track (e.g. 2, or 5.1 for 6 channels), or null. |
| ContentType | 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). |
| Samplerate | Gets the sample rate in Hz, or null. |
| SpatialRendering | Gets whether the audio must be rendered spatially, or null. |
Gets the average bitrate in bits per second, or null.
public ulong? Bitrate { get; init; }Property value
See also
Gets the channels of the track (e.g. 2, or 5.1 for 6 channels), or null.
public string? Channels { get; init; }Property value
See also
ContentType
MediaCapabilitiesConfigurations.csGets 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; }Property value
See also
Samplerate
MediaCapabilitiesConfigurations.csSpatialRendering
MediaCapabilitiesConfigurations.csGets whether the audio must be rendered spatially, or null.
public bool? SpatialRendering { get; init; }