-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect _errorCounts value #100
Comments
Good catch! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently when HLS.js freezes it fires several non-fatal "bufferStalled" and "bufferNudgeOnStall" errors before firing a single fatal "bufferStalled" error. All of these errors count as "media" errors, and so
_errorCount["media"]
is set to 6 or 7 before_handleMediaError()
gets called (by the fatal one) - meaning we never attempt_hls.recoverMediaError()
or_hls.swapAudioCodec()
Should be a trivial fix of moving the increment/set error count step to within the
if (data.fatal)
blockThe text was updated successfully, but these errors were encountered: