Sdílet prostřednictvím


MediaLayerBase Class

Definition

The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution.

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

Constructors

MediaLayerBase()

Initializes a new instance of MediaLayerBase.

Properties

Height

The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.

Label

The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.

Width

The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MediaLayerBase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MediaLayerBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MediaLayerBase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MediaLayerBase>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MediaLayerBase>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to