mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
c203b7253b
commit
d7846a5280
7 changed files with 17 additions and 27 deletions
|
@ -154,21 +154,12 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime', 'browser'], fun
|
|||
if (!AppInfo.isNativeApp) {
|
||||
var disableHlsVideoAudioCodecs = [];
|
||||
|
||||
if (!self.canPlayNativeHls()) {
|
||||
// hls.js does not support this
|
||||
if (!self.canPlayNativeHls() || (browser.edge && !item.RunTimeTicks)) {
|
||||
// hls.js does not support these
|
||||
disableHlsVideoAudioCodecs.push('mp3');
|
||||
}
|
||||
if (!item.RunTimeTicks) {
|
||||
// hls.js does not support this
|
||||
disableHlsVideoAudioCodecs.push('ac3');
|
||||
}
|
||||
|
||||
options.enableMkvProgressive = item.RunTimeTicks != null;
|
||||
|
||||
if (item.RunTimeTicks == null) {
|
||||
options.enableHls = true;
|
||||
}
|
||||
|
||||
options.enableMkvProgressive = false;
|
||||
options.disableHlsVideoAudioCodecs = disableHlsVideoAudioCodecs;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue