Skip to content

Commit

Permalink
Merge pull request video-dev#1427 from sh84/abr_controller_next_autol…
Browse files Browse the repository at this point in the history
…evel_fix

fix nextAutoLevel blocking when fragment aborted
  • Loading branch information
mangui authored Nov 27, 2017
2 parents 3eb4e7d + fcc6e29 commit 93f3b6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controller/abr-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class AbrController extends EventHandler {
if(!loader || ( loader.stats && loader.stats.aborted)) {
logger.warn('frag loader destroy or aborted, disarm abandonRules');
this.clearTimer();
// reset forced auto level value so that next level will be selected
this._nextAutoLevel = -1;
return;
}
let stats = loader.stats;
Expand Down

0 comments on commit 93f3b6a

Please sign in to comment.