mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
d9299a0a48
commit
101944aab9
36 changed files with 240 additions and 66 deletions
|
@ -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