mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix loss of audio
This commit is contained in:
parent
e81e43a19d
commit
17fc9c418d
2 changed files with 26 additions and 15 deletions
|
@ -148,14 +148,20 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appS
|
|||
|
||||
function getProfileOptions(item) {
|
||||
|
||||
var disableVideoAudioCodecs = [];
|
||||
if (!AppInfo.isNativeApp && !item.RunTimeTicks) {
|
||||
disableVideoAudioCodecs.push('ac3');
|
||||
}
|
||||
|
||||
var options = {};
|
||||
|
||||
if (!AppInfo.isNativeApp) {
|
||||
var disableHlsVideoAudioCodecs = [];
|
||||
|
||||
if (!self.canPlayNativeHls()) {
|
||||
// hls.js does not support this
|
||||
disableHlsVideoAudioCodecs.push('mp3');
|
||||
}
|
||||
if (!item.RunTimeTicks) {
|
||||
// hls.js does not support this
|
||||
disableHlsVideoAudioCodecs.push('ac3');
|
||||
}
|
||||
|
||||
options.enableMkvProgressive = item.RunTimeTicks != null;
|
||||
|
||||
if (item.RunTimeTicks == null) {
|
||||
|
@ -163,9 +169,8 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appS
|
|||
}
|
||||
|
||||
options.enableMkvProgressive = false;
|
||||
options.disableVideoAudioCodecs = disableVideoAudioCodecs;
|
||||
options.disableHlsVideoAudioCodecs = disableHlsVideoAudioCodecs;
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue