jellyfin-android
jellyfin-android copied to clipboard
Backup server address and connection timeout
Describe the feature you'd like A timeout when the default server address is not working, and then it tries to connect to a backup server address.
Additional context When you host your own instance, you need two addresses: the local and the public addresses. However, if the application can not connect, it errors out and does nothing (you can't even try to reconnect).
The bindService
function call should be tied to a timer (for the timeout), and then try the backup server address.
Another way of doing it is to try to ping the server and if it does not respond, do something else instead of binding.
Here's an example that works quite well, in home assistant, you can defined your home wifi ssid, and if you're connected to that wifi, it will connect to the internal URL instead.