Skip to content

Commit a58b24c

Browse files
committed
When stream has ended; i.e. DVR window end matches duration, set the default start time to dvrWindow start
1 parent 7eecf48 commit a58b24c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/streaming/controllers/StreamController.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,10 @@ function StreamController() {
11761176
logger.info(`Start time from URI parameters: ${startTimeFromUri}`);
11771177
// Do not move closer to the live edge as defined by live delay
11781178
startTime = Math.min(startTime, startTimeFromUri);
1179+
} else {
1180+
if (adapter.getDuration() === dvrWindow.end) {
1181+
startTime = dvrWindow.start;
1182+
}
11791183
}
11801184
}
11811185
// If calcFromSegmentTimeline is enabled we saw problems caused by the MSE.seekableRange when starting at dvrWindow.start. Apply a small offset to avoid this problem.

0 commit comments

Comments
 (0)