Interface Quality

An interface describing a media rendition, which is a selection from video/audio tracks of the loaded media.

interface Quality {
    bitrate: number;
    codecs: string;
    height: number;
    name: string;
    sourceGroups: string[];
    variantId: string;
    variantSource: string;
    width: number;
}

Properties

bitrate: number

The bitrate of the media in bits per second.

codecs: string

The codec string, both audio and video tracks. For example, "avc1.64002A,mp4a.40.2".

height: number

The video height, or zero if unknown or not applicable.

name: string

The name of the quality object.

sourceGroups: string[]

Array of source groups this quality belongs to, e.g. ["portrait", "landscape"]

variantId: string

Variant ID from STABLE-VARIANT-ID field

variantSource: string

A string representing the origin of the variant, e.g. "source" or "transcode"

width: number

The video width, or zero if unknown or not applicable.