Skip to content
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

Open
lericson-ideanova opened this issue Dec 20, 2024 · 0 comments
Open

Detecting player stall after max attempts reached #7794

lericson-ideanova opened this issue Dec 20, 2024 · 0 comments
Labels
type: question A question from the community

Comments

@lericson-ideanova
Copy link

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 setting streaming.retryParameters.maxAttempts = 5 and counting the number of HTTP_ERRORs 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?

@lericson-ideanova lericson-ideanova added the type: question A question from the community label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question A question from the community
Projects
None yet
Development

No branches or pull requests

1 participant