1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #2461 from thornbill/remove-ios-limit

Remove iOS bandwidth limit

(cherry picked from commit 8f2437ab97)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
Joshua M. Boniface 2021-02-28 01:29:35 -05:00
parent 7724b5fedc
commit 3ad0bb9118

View file

@ -471,18 +471,9 @@ class AppRouter {
return null;
}
getMaxBandwidthIOS() {
return 800000;
}
onApiClientCreated(e, newApiClient) {
newApiClient.normalizeImageOptions = this.normalizeImageOptions;
if (browser.iOS) {
newApiClient.getMaxBandwidth = this.getMaxBandwidthIOS;
} else {
newApiClient.getMaxBandwidth = this.getMaxBandwidth;
}
newApiClient.getMaxBandwidth = this.getMaxBandwidth;
Events.off(newApiClient, 'requestfail', this.onRequestFail);
Events.on(newApiClient, 'requestfail', this.onRequestFail);