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:
parent
17fc9c418d
commit
0a3d8781cf
1 changed files with 3 additions and 11 deletions
|
@ -153,24 +153,16 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appS
|
||||||
if (!AppInfo.isNativeApp) {
|
if (!AppInfo.isNativeApp) {
|
||||||
var disableHlsVideoAudioCodecs = [];
|
var disableHlsVideoAudioCodecs = [];
|
||||||
|
|
||||||
if (!self.canPlayNativeHls()) {
|
if (!self.canPlayNativeHls() || (browserInfo.edge && !item.RunTimeTicks)) {
|
||||||
// hls.js does not support this
|
// hls.js does not support these
|
||||||
disableHlsVideoAudioCodecs.push('mp3');
|
disableHlsVideoAudioCodecs.push('mp3');
|
||||||
}
|
|
||||||
if (!item.RunTimeTicks) {
|
|
||||||
// hls.js does not support this
|
|
||||||
disableHlsVideoAudioCodecs.push('ac3');
|
disableHlsVideoAudioCodecs.push('ac3');
|
||||||
}
|
}
|
||||||
|
|
||||||
options.enableMkvProgressive = item.RunTimeTicks != null;
|
|
||||||
|
|
||||||
if (item.RunTimeTicks == null) {
|
|
||||||
options.enableHls = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
options.enableMkvProgressive = false;
|
options.enableMkvProgressive = false;
|
||||||
options.disableHlsVideoAudioCodecs = disableHlsVideoAudioCodecs;
|
options.disableHlsVideoAudioCodecs = disableHlsVideoAudioCodecs;
|
||||||
}
|
}
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue