Amazon Vinyl
    Preparing search index...

    Interface MediaQualityData

    Represents a single quality within a period, providing access to its metadata and segment data.

    interface MediaQualityData {
        metadata: MediaQualityMetadata;
        getSegment(
            time: number,
            affordance?: number,
        ): Promise<SegmentReference<SegmentDataProvider> | null>;
    }
    Index
    • Gets the segment reference at the given time, or null if the time is outside the range.

      Parameters

      • time: number

        The time, in seconds, relative to the presentation timeline.

      • Optionalaffordance: number

        Forward-snap tolerance in seconds: if time falls just before a segment's start (within affordance), that segment is returned. Defaults to 0.

      Returns Promise<SegmentReference<SegmentDataProvider> | null>