Skip to content

Commit

Permalink
Fix #1759 (regression) resume correctly after seek
Browse files Browse the repository at this point in the history
  • Loading branch information
JontyUsborne committed Jan 25, 2017
1 parent 91cd1ec commit 6650178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dash/DashHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ function DashHandler(config) {

updateSegments(representation);
index = getIndexForSegments(time, representation, timeThreshold);
//Index may be -1 if getSegments needs to update. So after getSegments is called and updated then try to get index again.
//Index may be -1 if getSegments needs to update again. So after getSegments is called and updated then try to get index again.
if (index < 0) {
updateSegments(representation);
index = getIndexForSegments(time, representation, timeThreshold);
}

Expand Down

0 comments on commit 6650178

Please sign in to comment.