Amazon Vinyl
    Preparing search index...

    Interface MediaQualityMetadata

    Metadata representing attributes of a media representation.

    interface MediaQualityMetadata {
        audioSamplingRate: readonly number[] | null;
        bandwidth: number | null;
        bandwidthTotal: number | null;
        characteristics: readonly string[];
        codecs: string | null;
        contentProtections: readonly DrmProtection[];
        contentType: ContentType | null;
        decoderId: string;
        encryptionScheme: string | null;
        frameRate: FrameRate | null;
        groupId: string;
        height: number | null;
        initDataType: string | null;
        lang: string | null;
        mimeType: string | null;
        qualityId: string;
        supplementalProperties: DescriptorRecord;
        switchingGroupIds: readonly string[] | null;
        width: number | null;
    }

    Hierarchy (View Summary)

    Index
    audioSamplingRate: readonly number[] | null

    Audio sampling rate(s) in samples per second. An array of either one or two decimal integer values. If there are two elements this represents a minimum and maximum sampling rate of the audio media.

    bandwidth: number | null

    The average bandwidth in bits per second required for playing this representation. For HLS, and non-segmented media this will be null.

    bandwidthTotal: number | null

    The peak bandwidth in bits per second required for playing this representation with its cumulative A/V content streams.

    Guaranteed to be set for segmented media.

    characteristics: readonly string[]

    Media characteristics / accessibility roles describing this rendition, e.g. public.accessibility.describes-video (HLS CHARACTERISTICS) or a DASH Role / Accessibility scheme value such as description. Used to keep accessibility renditions (e.g. audio description) from being auto-selected by default. Empty when none are signaled.

    codecs: string | null

    Optional string specifying the codec(s) used for this representation. The format follows the RFC 6381 codec string format.

    contentProtections: readonly DrmProtection[]

    Protection schemes used in this media.

    contentType: ContentType | null

    The content type of the representation, e.g. 'audio', 'video', 'text' Must be non-null for segmented media.

    decoderId: string

    Provides a decoding identifier. If this value changes from the previously buffered segment, the initialization segment must be buffered before appending the media segment. Unique to the track.

    encryptionScheme: string | null

    The method of encryption, or null.

    frameRate: FrameRate | null

    Frame rate for video representations, specified either as a ratio of integers, e.g. [30000, 1001]

    groupId: string

    Identifies the group this quality belongs to (e.g. the adaptation set).

    height: number | null

    For video representations, the height of the video in pixels.

    initDataType: string | null

    The initialization data format.

    lang: string | null

    Specifies the language of the content, using a code as defined by RFC 5646.

    mimeType: string | null

    The full MIME type of the media.

    Must be non-null for segmented media.

    qualityId: string

    The quality id identifies the quality representation. Unique to the track.

    supplementalProperties: DescriptorRecord

    Information that may enhance playback or presentation.

    switchingGroupIds: readonly string[] | null

    The group IDs that this quality is permitted to switch to during playback. Derived from the DASH urn:mpeg:dash:adaptation-set-switching:2016 supplemental property. Includes the quality's own groupId. Null means no switching constraint (all groups are permitted). An array restricts switching to only the listed group IDs. Default behavior:

    • DASH: restricted to own group unless adaptation-set-switching property is present.
    • HLS: restricted to variants with the same base codec and language.
    width: number | null

    For video representations, the width of the video in pixels.