update components

This commit is contained in:
Luke Pulverenti 2016-04-08 23:08:50 -04:00
parent d9299a0a48
commit 101944aab9
36 changed files with 240 additions and 66 deletions

View file

@ -2446,9 +2446,12 @@ var StreamController = function (_EventHandler) {
case _errors.ErrorDetails.LEVEL_LOAD_TIMEOUT:
case _errors.ErrorDetails.KEY_LOAD_ERROR:
case _errors.ErrorDetails.KEY_LOAD_TIMEOUT:
// if fatal error, stop processing, otherwise move to IDLE to retry loading
_logger.logger.warn('mediaController: ' + data.details + ' while loading frag,switch to ' + (data.fatal ? 'ERROR' : 'IDLE') + ' state ...');
this.state = data.fatal ? State.ERROR : State.IDLE;
// when in ERROR state, don't switch back to IDLE state in case a non-fatal error is received
if (this.state !== State.ERROR) {
// if fatal error, stop processing, otherwise move to IDLE to retry loading
this.state = data.fatal ? State.ERROR : State.IDLE;
_logger.logger.warn('mediaController: ' + data.details + ' while loading frag,switch to ' + this.state + ' state ...');
}
break;
case _errors.ErrorDetails.BUFFER_FULL_ERROR:
// trigger a smooth level switch to empty buffers

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long