Skip to content

Commit

Permalink
Merge pull request #3131 from Orange-OpenSource/fix-live-segmenttimel…
Browse files Browse the repository at this point in the history
…ine-start

Fix starting of live streams with SegmentTimeline
  • Loading branch information
dsilhavy authored Jan 14, 2020
2 parents cd77be1 + 9cb19f2 commit 69c3991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/controllers/PlaybackController.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ function PlaybackController() {
if (!DVRWindow) return NaN;
if (currentTime > DVRWindow.end) {
actualTime = Math.max(DVRWindow.end - streamInfo.manifestInfo.minBufferTime * 2, DVRWindow.start);
} else if (currentTime + 0.250 < DVRWindow.start && DVRWindow.start - currentTime > DVRWindow.start - 315360000) {
} else if (currentTime > 0 && currentTime + 0.250 < DVRWindow.start && DVRWindow.start - currentTime > DVRWindow.start - 315360000) {
// Checking currentTime plus 250ms as the 'timeupdate' is fired with a frequency between 4Hz and 66Hz
// https://developer.mozilla.org/en-US/docs/Web/Events/timeupdate
// http://w3c.github.io/html/single-page.html#offsets-into-the-media-resource
Expand Down

0 comments on commit 69c3991

Please sign in to comment.