fix: resolve error 2004/2001 on Android TV (IPv6, timeouts)#2916
Open
fgmitesh wants to merge 3 commits into
Open
fix: resolve error 2004/2001 on Android TV (IPv6, timeouts)#2916fgmitesh wants to merge 3 commits into
fgmitesh wants to merge 3 commits into
Conversation
Added comments to explain IPv6 handling for Android TV.
Increased timeout settings for OkHttpClient to accommodate slower network stacks.
Increased CRONET timeout to 30 seconds to accommodate slower TV network stacks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Android TV gets ExoPlayer errors 2004/2001 on sources that work fine on
mobile with the same Wi-Fi. Three fixes:
DohProviders: add .includeIPv6(false) — TV firmware often has a broken
IPv6 stack. DoH returns both IPv4+IPv6, OkHttp tries IPv6 first and
silently fails. Mobile handles the fallback; TV doesn't.
RequestsHelper: set explicit 30s timeouts + retryOnConnectionFailure(true)
— OkHttp's default 10s is too short for slower TV network stacks.
CS3IPlayer: increase Cronet timeout 15s → 30s for the same reason.