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

[APT-10344] Initialization State Smoothness & Bugfix #42

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

kabliz
Copy link
Contributor

@kabliz kabliz commented Sep 5, 2024

Ensured that ArmadilloPlayer.armadilloStateObservable has a state as soon as the player is initialized

Fixed UnknownHostException being mapped to a HTTP status code issue rather than a Connectivity issue.

- Ensured that ArmadilloPlayer.armadilloStateObservable has a state as soon as the player is initialized
- Fixed UnknownHostException being mapped to a HTTP status code issue rather than a Connectivity issue.
@shreknitin89 shreknitin89 self-assigned this Sep 5, 2024
@@ -30,9 +30,8 @@ internal fun ExoPlaybackException.toArmadilloException(): ArmadilloException {
val httpCause = source.cause as? HttpDataSource.InvalidResponseCodeException
HttpResponseCodeException(httpCause?.responseCode ?: 0, httpCause?.dataSpec?.uri.toString(), source)
}
is UnknownHostException,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason this was mapped to an http exception was so that we could have the host in the error for tracking. Any way to add that here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exception appears in airplane mode, so it might not accurately reflect whether the host exists in DNS. Is it still valuable in that case?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's a good point. It's probably fine.

@kabliz kabliz merged commit c89a439 into main Sep 6, 2024
6 checks passed
@kabliz kabliz deleted the katherine/APT-10344-1-init-state branch September 6, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants