jellyfin / jellyfin-mpv-shim

MPV Cast Client for Jellyfin
Other
1.66k stars 95 forks source link

"Reconnect to server" option? #410

Open intelfx opened 3 months ago

intelfx commented 3 months ago

Is your feature request related to a problem? Please describe.

The MPV Shim sometimes loses connection to the Jellyfin server, or the Jellyfin server wedges up and needs to be restarted, or the connection is lost physically, or any combination of these three. In either case, MPV Shim loses connection to the server and there is no way to reestablish this connection other than to restart the MPV Shim, which gets real old real fast.

Describe the solution you'd like

I'd like if there was a GUI "Server Configuration" window button or a systray menu option in the MPV Shim to reconnect to either 1) the last connected/attempted server or 2) to the given server.

Ideally, it could be complemented with a timer (with e.g. exponential backoff) to retry connecting automatically in the background. (In case a timer is added, it should be overridable with an explicit action, e.g. "Reconnect right now".)

Describe alternatives you've considered

Additional context

It would be also very nice if the tray icon could change (e.g. to a greyed-out) depending on the connection status, and it would be likewise very nice if the auto-reconnect/reconnect-to-last functionality was available from the tray menu rather than strictly from the server configuration window.