Share via


MediaAudioBase Class

Definition

Defines the common properties for all audio codecs. Please note MediaAudioBase is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AacAudio and DDAudio.

public class MediaAudioBase : Azure.ResourceManager.Media.Models.MediaCodecBase, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.MediaAudioBase>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.MediaAudioBase>
public class MediaAudioBase : Azure.ResourceManager.Media.Models.MediaCodecBase
type MediaAudioBase = class
    inherit MediaCodecBase
    interface IJsonModel<MediaAudioBase>
    interface IPersistableModel<MediaAudioBase>
type MediaAudioBase = class
    inherit MediaCodecBase
Public Class MediaAudioBase
Inherits MediaCodecBase
Implements IJsonModel(Of MediaAudioBase), IPersistableModel(Of MediaAudioBase)
Public Class MediaAudioBase
Inherits MediaCodecBase
Inheritance
MediaAudioBase
Derived
Implements

Constructors

MediaAudioBase()

Initializes a new instance of MediaAudioBase.

Properties

Bitrate

The bitrate, in bits per second, of the output encoded audio.

Channels

The number of channels in the audio.

Label

An optional label for the codec. The label can be used to control muxing behavior.

(Inherited from MediaCodecBase)
SamplingRate

The sampling rate to use for encoding in hertz.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MediaAudioBase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MediaAudioBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<MediaCodecBase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from MediaCodecBase)
IJsonModel<MediaCodecBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from MediaCodecBase)
IPersistableModel<MediaAudioBase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MediaAudioBase>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MediaAudioBase>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<MediaCodecBase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from MediaCodecBase)
IPersistableModel<MediaCodecBase>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from MediaCodecBase)
IPersistableModel<MediaCodecBase>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from MediaCodecBase)

Applies to