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

update audio fix

This commit is contained in:
Luke Pulverenti 2016-11-03 12:59:28 -04:00
parent 17fc9c418d
commit 0a3d8781cf

View file

@ -153,24 +153,16 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appS
if (!AppInfo.isNativeApp) {
var disableHlsVideoAudioCodecs = [];
if (!self.canPlayNativeHls()) {
// hls.js does not support this
if (!self.canPlayNativeHls() || (browserInfo.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;
}
return options;
}