Delen via


MediaCodecBase Class

Definition

Describes the basic properties of all codecs. Please note MediaCodecBase 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, MediaAudioBase, CodecCopyAudio, CodecCopyVideo, DDAudio, H264Video, H265Video, MediaImageBase, JpgImage, PngImage and MediaVideoBase.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Media.Models.UnknownCodec))]
public abstract class MediaCodecBase : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.MediaCodecBase>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.MediaCodecBase>
public abstract class MediaCodecBase
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Media.Models.UnknownCodec))>]
type MediaCodecBase = class
    interface IJsonModel<MediaCodecBase>
    interface IPersistableModel<MediaCodecBase>
type MediaCodecBase = class
Public MustInherit Class MediaCodecBase
Implements IJsonModel(Of MediaCodecBase), IPersistableModel(Of MediaCodecBase)
Public MustInherit Class MediaCodecBase
Inheritance
MediaCodecBase
Derived
Attributes
Implements

Constructors

MediaCodecBase()

Initializes a new instance of MediaCodecBase.

Properties

Label

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MediaCodecBase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MediaCodecBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MediaCodecBase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MediaCodecBase>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MediaCodecBase>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to