jellyfin-archive / jellyfin-android-original

Android Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
272 stars 65 forks source link

Use Android ConnectivityManager to determine network status and type #300

Open rexbron opened 4 years ago

rexbron commented 4 years ago

Jellyfin-android App Version: 0.9.9 Installed from: Play Store

Feature Request: Set bitrate based on Client network connection type

Currently, the streaming bitrate is set based on whether the request to the server is coming from within the defined LAN range of IP addresses.

It would be preferable for a client on a fast, un-metered internet connection, such as a friend or hotel wifi, outside the LAN IP range to not be subject to the client bandwidth restrictions. Currently, this requires the user to manually change the internet setting:

image

Suggested resolution:

Android has an API that allows the client to determine if it is on a metered internet connection, such as LTE, where restricting the bitrate is desirable to unintentionally consuming metered bandwidth.

Monitor connectivity status and connection metering