update components

This commit is contained in:
Luke Pulverenti 2016-04-08 12:49:34 -04:00
parent f1d6aab355
commit f3e8cf9567
21 changed files with 365 additions and 154 deletions

View file

@ -143,7 +143,7 @@ class AbrController extends EventHandler {
get nextAutoLevel() {
var lastbw = this.lastbw, hls = this.hls,adjustedbw, i, maxAutoLevel;
if (this._autoLevelCapping === -1) {
if (this._autoLevelCapping === -1 && hls.levels && hls.levels.length) {
maxAutoLevel = hls.levels.length - 1;
} else {
maxAutoLevel = this._autoLevelCapping;