update components
This commit is contained in:
parent
d9299a0a48
commit
101944aab9
36 changed files with 240 additions and 66 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.18",
|
||||
"version": "0.5.19",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
@ -16,11 +16,11 @@
|
|||
"test",
|
||||
"tests"
|
||||
],
|
||||
"_release": "0.5.18",
|
||||
"_release": "0.5.19",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.5.18",
|
||||
"commit": "9ec23657e0c69b1a0a4304f2f0a2d1c575edc496"
|
||||
"tag": "v0.5.19",
|
||||
"commit": "ad5665b216b04d1dd5a44dbf9242664e2da323e0"
|
||||
},
|
||||
"_source": "git://github.com/dailymotion/hls.js.git",
|
||||
"_target": "~0.5.7",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.18",
|
||||
"version": "0.5.19",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
|
|
@ -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
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.18",
|
||||
"version": "0.5.19",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
|
|
@ -943,9 +943,12 @@ class StreamController extends EventHandler {
|
|||
case ErrorDetails.LEVEL_LOAD_TIMEOUT:
|
||||
case ErrorDetails.KEY_LOAD_ERROR:
|
||||
case ErrorDetails.KEY_LOAD_TIMEOUT:
|
||||
// if fatal error, stop processing, otherwise move to IDLE to retry loading
|
||||
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.warn(`mediaController: ${data.details} while loading frag,switch to ${this.state} state ...`);
|
||||
}
|
||||
break;
|
||||
case ErrorDetails.BUFFER_FULL_ERROR:
|
||||
// trigger a smooth level switch to empty buffers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue