Remove incorrect check for (e)ac3 audio support

This commit is contained in:
Bond_009 2023-03-18 23:45:55 +01:00
parent 0d3456dc4f
commit c0efec8296

View File

@ -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);