jellyfin-android icon indicating copy to clipboard operation
jellyfin-android copied to clipboard

Backup server address and connection timeout

Open margual56 opened this issue 3 years ago • 2 comments

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).

margual56 avatar Apr 22 '21 12:04 margual56

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.

margual56 avatar Apr 22 '21 13:04 margual56

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.

IMG_20210717_062500

tam-wh avatar Jul 16 '21 22:07 tam-wh