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

update components

This commit is contained in:
Luke Pulverenti 2016-11-03 13:40:27 -04:00
parent c203b7253b
commit d7846a5280
7 changed files with 17 additions and 27 deletions

View file

@ -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;
}