-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Detecting player stall after max attempts reached #7794
Comments
Currently it is not possible to detect this with any Shaka Player events, I'll leave it to @theodab to decide if we should add this or not. |
@lericson-ideanova Does this answer all your questions? If so, would you please close the issue? |
@lericson-ideanova Does this answer all your questions? If so, would you please close the issue? |
@avelad Is there a recommended way to detect the stall outside of shaka player events? |
The The Is there some situation you have been having where playback stalls but there is no error event being dispatched? |
@theodab We want to notify the user of a network error when the stream is unrecoverable and halted. We indeed intercept and receive the network errors but since they dispatch prior to the user experiencing any issues (they are still playing cached content) we don't want to notify the user in case the video recovers in that time. So we are looking for a way to detect when the player has nothing left in the buffer and has given up on retrying. We considered periodically checking the players progress after a network error to detect when/if comes to a full halt, but I wanted to verify if there was a better solution already in shaka first. However it still seems like that is the best option, although using If you have any other recommendations for us to go about this, it would be much appreciated. Otherwise we will pursue this path and you can close the issue. Thanks. |
I'm also interested in a feature for detecting this. Similarly, I'd be interested in a feature that automatically retries until the buffer is exhausted. Currently, if we close the player when it raises a fatal network error, there might still be plenty of buffer left to play, during which we could keep on trying to recover without the user noticing anything ever went wrong. |
Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
If the question is related to FairPlay, have you read the tutorial?
N/A
What version of Shaka Player are you using?
4.4.0
What browser and OS are you using?
Chrome, Mac OS Sequoia 15.1.1
Please ask your question
Hello, I am trying to detect when the player has stalled and will not recover in order to display an error message. Based on the current network errors, I do not see how shaka notifies that this situation has been reached.
I tried detecting network errors, It looks like
ATTEMPTS_EXHAUSTED
would be dispatched when player is stalled and run out of attempts, but this is not dispatched as its an internal error. I also tried settingstreaming.retryParameters.maxAttempts = 5
and counting the number ofHTTP_ERROR
s thinking it would line up, but these do not match the number of retries, and the errors stop logging when there is buffer left.I also see the docs have a page for
StallDetector
, but did not provide any examples or documentation on how to use it.Is there not a way to detect if max attempts is reached or that there is no buffer left and we are stalled? Is there a way I can surface the
ATTEMPTS_EXHAUSTED
error to detect this case?The text was updated successfully, but these errors were encountered: