-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Support retrying network errors indefinitely #7309
Comments
A few points:
If you want to retry indefinitely when a network error occurs, you should use the LoadErrorHandlingPolicy. There's actually some material here, but I'm also working on an improvement which I will link to this issue. I'll also use this issue to track support for indefinite network issues retries. |
Issue: #7309 PiperOrigin-RevId: 309387483
Thanks for your replay. I added a log to onPlayError, but nothing prints out when EventLogger print this error. It's probably caused by the second point you said. I'll try to use LoadErrorHandlingPolicy. Let me know if there's any progress. thanks again. |
Issue: #7309 PiperOrigin-RevId: 309749566
Issue:#7309 PiperOrigin-RevId: 311324242
Issue:#7309 PiperOrigin-RevId: 311324242
Issue:#7309 PiperOrigin-RevId: 311504497
Issue: #7309 PiperOrigin-RevId: 312115330
@AquilesCanta - Is there remaining work to do here? |
Hi @DorisGM, this is already supported in the dev branch. Please check it out and reach back if you find any issues. Please have a look at the new |
[REQUIRED] Issue description
When I played a video for a long time, maybe the network isn't good.so throw HttpDataSource$HttpDataSourceException: java.net.SocketTimeoutException: timeout when invoke read method. I want to catch this error at onPlayerError and to retry play .But I found i can't receive this error at this method. And after throw this error, exoplayer don't play anymore ,freeze at last frame.
[REQUIRED] Reproduction steps
SocketTimeoutException: timeout when read can't catch up by onPlayerError.
[REQUIRED] Link to test content
sorry, the content link is provisional.
[REQUIRED] A full bug report captured from the device
[REQUIRED] Version of ExoPlayer being used
the latest.
[REQUIRED] Device(s) and version(s) of Android being used
H6, Android 7.1
The text was updated successfully, but these errors were encountered: