Skip to content

Commit

Permalink
fix: llHLS does not need forcedTimestampOffset (#1501)
Browse files Browse the repository at this point in the history
* fix: llHLS does not need forcedTimestampOffset

* more readable boolean
  • Loading branch information
adrums86 committed Apr 2, 2024
1 parent ddc9374 commit f5d1209
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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_ = [];
Expand Down

0 comments on commit f5d1209

Please sign in to comment.