mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
The media server asked the OS which local address routes to the TV. Android routes each app through an active VPN, and through mobile data when Wi-Fi is not the default network, so the TV was handed an address it could not reach: it connected, showed the Cast screen and never played, ending in Google Cast timeout 15 or the app's own 25 second limit. Pick the interface address whose network holds the TV and fall back to the route only when there is none. Rebind when this device's address changed, say what to check when the TV cannot reach the device, and let the platform's answer arrive before the app's own limit on a load.