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) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue