Browse Source

fix: llHLS does not need forcedTimestampOffset (#1501)

* fix: llHLS does not need forcedTimestampOffset

* more readable boolean
pull/1502/head
Adam Waldron 1 year ago
committed by GitHub
parent
commit
f5d120935f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      src/segment-loader.js

7
src/segment-loader.js

@ -1238,8 +1238,11 @@ bufferedEnd: ${lastBufferedEnd(this.buffered_())}
this.syncPoint_ = null;
this.isPendingTimestampOffset_ = false;
// this is mainly to sync timing-info when switching between renditions with and without timestamp-rollover,
// so we don't want it for DASH
if (this.sourceType_ === 'hls') {
// so we don't want it for DASH or fragmented mp4 segments.
const isFmp4 = this.currentMediaInfo_ && this.currentMediaInfo_.isFmp4;
const isHlsTs = this.sourceType_ === 'hls' && !isFmp4;
if (isHlsTs) {
this.shouldForceTimestampOffsetAfterResync_ = true;
}
this.callQueue_ = [];

Loading…
Cancel
Save