Skip to content

Commit

Permalink
fix: sessionLive PDT timelinePosition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfrederiksen committed Oct 16, 2024
1 parent 4382368 commit 5a6d1d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/session_live.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ class SessionLive {
this.vodSegments[bw].push(v2lSegment);
if (v2lSegment.timelinePosition) {
this.timeOffsetVideo = v2lSegment.timelinePosition;
} else if (v2lSegment.duration) {
} else if (this.timeOffsetVideo > 0 && v2lSegment.duration) {
// In case a vinjette is added to the beginning of the stream and V2L doesn't provide timelinePosition on it
this.timeOffsetVideo += v2lSegment.duration * 1000;
v2lSegment.timelinePosition = this.timeOffsetVideo;
}
Expand Down

0 comments on commit 5a6d1d8

Please sign in to comment.