jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.69k stars 461 forks source link

longer timeout at connection #3130

Closed bibitocarlos closed 11 months ago

bibitocarlos commented 11 months ago

Describe the feature you'd like

Hi, Would it be possible to add à few more secondes before to time out at connection, my server needs à little more time to wake up and i couldnt find à way in the source code to modify it ?

Thanks for your work !

nielsvanvelzen commented 11 months ago

Can you give some more detail for the use-case? A timeout of 30 seconds is plenty in my opinion, the average user doesn't even want to wait 2 seconds.

bibitocarlos commented 11 months ago

I put with à script my server on sleep (ram) when it detects inactivity. My jellyfin server is behind à caddy server on a pi. On the caddy server i use wakeonlan plugin to wake up my jellyfin server on every connection on it through https. The server takes around 7-8 secondes to wake up ( cant verify thé exact timing im not at home) The jellyfin android gives me à time out error connection on first attempt. I will test with jellyfin-Web if the timeout is thé same.

bibitocarlos commented 11 months ago

I définitively dont have a timeout of 30 seconds ^^

zehnerGIT commented 11 months ago

The timeout value of 30sec seems to work on my Android TV 11 box. My nas spins down all hdds after 15mins of inactivity. My hdds need more than 10sec to wake up. Kodi limited the timeout in the last version to 10sec, so I have to start almost every playback 2 times with the Kodi-client. But on the current Jellyfin androidtv-client, everything works as expected, after about 15sec the playback starts and no exception.

bibitocarlos commented 11 months ago

I'm not talking about HDD or Kodi, and watching a video. My point is with jellyfin-android (and maybe jellyfin-androidtv), when you start the app. The autoconnection is not working, i get a timeout, and need to choose again the server, the the user.

nielsvanvelzen commented 11 months ago

Jellyfin does not support Wake on Lan and the app assumes the server is up and running. We use a 30 second timeout in all code using our new SDK. Some parts of the app may still use a faster timeout because it uses our old Java apiclient which is slowly being phased out. I don't see a point in increasing the timeout. If the app crashes or somehow shows weird behavior we can always work on improving that but that does not appear to be the case here.

Closing as wontfix.

My point is with jellyfin-android (and maybe jellyfin-androidtv)

You're reporting an issue in the Android TV repository, not the mobile one.