Amazon Vinyl
    Preparing search index...

    Interface LoadSpanMeasurement

    A timed span for one stage of a track load.

    Dispatched by the controller that owns the stage. Emitters attribute the span to the track it was measured for at the source (see trackUri); the player republishes it as a LoadSpanEvent. When the emitter cannot know the owning track, trackUri is omitted and the span is dropped rather than misattributed.

    interface LoadSpanMeasurement {
        contentType?: ContentType;
        endTime: number;
        kind: LoadSpanKind;
        mimeType?: string;
        startTime: number;
        trackUri?: string;
    }

    Hierarchy (View Summary)

    Index
    contentType?: ContentType

    The content type this span was measured for, when known. Set alongside mimeType for DRM license spans.

    endTime: number

    When the stage completed, as a unix millisecond timestamp.

    mimeType?: string

    The MIME type of the content this span was measured for, when known. Set for DRM license spans so a certificate exchange and the per-content-type license exchanges are distinguishable.

    startTime: number

    When the stage began, as a unix millisecond timestamp.

    trackUri?: string

    The track this span was measured for, stamped at the source by the emitter that knows which track initiated the load. Omitted only when the initiating track is not yet known (e.g. an encrypted event handled before buffering DRM info is set).