lib/player.js
function getAdjustedTime(stream, time) {
    if (!stream) return null;
    const idx = stream.findSegmentPosition(time - period.startTime);
    if (idx == null) return null;
    const ref = stream.getSegmentReference(idx);
    if (!ref) return null;
    const refTime = ref.startTime + period.startTime;
    goog.asserts.assert(refTime <= time, 'Segment should start before time');
    return refTime;
  }
function getAdjustedTime(stream, time) {
    if (!stream) return null;
    const idx = stream.findSegmentPosition(time - period.startTime);
    if (idx == null) return null;
    const ref = stream.getSegmentReference(idx);
    if (!ref) return null;
    const refTime = ref.startTime + period.startTime;
    goog.asserts.assert(refTime <= time, 'Segment should start before time');
    return refTime;
  }
function getAdjustedTime ( stream , time ) { if ( ! stream ) return null ; const idx = stream . findSegmentPosition ( time - period . startTime ) ; if ( idx == null ) return null ; const ref = stream . getSegmentReference ( idx ) ; if ( ! ref ) return null ; const refTime = ref . startTime + period . startTime ; goog . asserts . assert ( refTime <= time , 'Segment should start before time' ) ; return refTime ; }
This method is called after StreamingEngine.init resolves, which means that all the active streams have had createSegmentIndex called.
This method is called after StreamingEngine . init resolves which means that all the active streams have had createSegmentIndex called .