Vinyl
    Preparing search index...

    Interface MediaSegmentReference<T>

    interface MediaSegmentReference<T> {
        data: T;
        endTime: number;
        startTime: number;
        timestampOffset: number;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Properties

    data: T

    Provides the media data.

    endTime: number

    The end time of the segment, in seconds. Relative to the MPD timeline. Should be used as the append window end.

    startTime: number

    The start time of the segment, in seconds. Relative to the MPD timeline. Should be used as the append window start.

    timestampOffset: number

    The timestamp offset of the segment. Should be used as the append timestamp offset. This is in seconds, relative to the MPD timeline. For example if the first segment has a timestampOffset of -2 and startTime of 0, playback will begin 2s into the start of that segment.