Skip to content

Commit

Permalink
Merge pull request #423 from jellyfin/bond-ac3
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill authored Jun 24, 2023
2 parents 77b66f6 + c0efec8 commit f687056
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions assets/js/NativeShell.staticjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,10 @@ window.NativeShell = {
return 'mobile';
},

getDeviceProfile: function(profileBuilder, profileBuilderVersion) {
const audioCodecs = [ 'opus' ];
const versionNumber = profileBuilderVersion !== undefined && profileBuilderVersion.split('.').map(num => Number.parseInt(num, 10));
const isAc3Eac3Disabled = profileBuilderVersion === undefined || (versionNumber.length === 3 && versionNumber[0] === 10 && versionNumber[1] < 7);
if (!isAc3Eac3Disabled) {
audioCodecs.push('ac3');
audioCodecs.push('eac3');
}

getDeviceProfile: function(profileBuilder) {
const profile = profileBuilder({
enableMkvProgressive: false,
disableHlsVideoAudioCodecs: audioCodecs
disableHlsVideoAudioCodecs: [ 'opus' ]
});

postExpoEvent('AppHost.getDeviceProfile', profile);
Expand Down

0 comments on commit f687056

Please sign in to comment.