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 · 2 comments
Open

Detecting player stall after max attempts reached #7794

lericson-ideanova opened this issue Dec 20, 2024 · 2 comments
Assignees
Labels
status: waiting on response Waiting on a response from the reporter(s) of the issue 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
@avelad
Copy link
Member

avelad commented Dec 24, 2024

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.

@shaka-bot
Copy link
Collaborator

@lericson-ideanova Does this answer all your questions? If so, would you please close the issue?

@shaka-bot shaka-bot added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting on response Waiting on a response from the reporter(s) of the issue type: question A question from the community
Projects
None yet
Development

No branches or pull requests

4 participants