Vinyl
    Preparing search index...

    Function sampleToMpdTime

    • Converts a sample time to an MPD-relative time.

      The samples within a representation exist on a linear sample timeline defined by the encoder. This function maps those sample times onto the MPD timeline.

      https://dashif-documents.azurewebsites.net/Guidelines-TimingModel/master/Guidelines-TimingModel.html

      Parameters

      • sampleTime: number

        The sample start time, in timescale units, relative to the media.

      • periodStart: number

        The presentation start time of the period, relative to the MPD timeline.

      • presentationTimeOffset: number

        Specifies a presentation time offset in the media timeline relative to the start of the Period, in timescale units, used to adjust the timing of media presentation.

      • timescale: number

        The timescale, in units per second.

      Returns number