mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix old iOS devices that do not support AC-3
This commit is contained in:
parent
924e8df815
commit
d898c1676a
1 changed files with 12 additions and 0 deletions
|
@ -70,6 +70,12 @@ define(['browser'], function (browser) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// iPhones 5c and older and old model iPads do not support AC-3/E-AC-3
|
||||||
|
// These models can only run iOS 10.x or lower
|
||||||
|
if (browser.iOS && browser.iOSVersion < 11) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return videoTestElement.canPlayType('audio/mp4; codecs="ac-3"').replace(/no/, '');
|
return videoTestElement.canPlayType('audio/mp4; codecs="ac-3"').replace(/no/, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,6 +84,12 @@ define(['browser'], function (browser) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// iPhones 5c and older and old model iPads do not support AC-3/E-AC-3
|
||||||
|
// These models can only run iOS 10.x or lower
|
||||||
|
if (browser.iOS && browser.iOSVersion < 11) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return videoTestElement.canPlayType('audio/mp4; codecs="ec-3"').replace(/no/, '');
|
return videoTestElement.canPlayType('audio/mp4; codecs="ec-3"').replace(/no/, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue