Skip to content

Commit

Permalink
Reset timeOffset when loading next vod
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfrederiksen committed Sep 12, 2023
1 parent e6a0ad0 commit 46985f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ class HLSVod {
}
const lastSeg = this.segments[sourceBw][this.segments[sourceBw].length - 1];
if (this.timeOffset !== null && lastSeg && lastSeg.timelinePosition) {
this.timeOffset = lastSeg.timelinePosition + lastSeg.duration * 1000;
this.timeOffset += lastSeg.duration * 1000;
}
this.segments[destBw].push({
discontinuity: true,
Expand Down

0 comments on commit 46985f4

Please sign in to comment.