mirror of
https://github.com/jellyfin/jellyfin-expo.git
synced 2024-11-27 00:00:26 +00:00
Remove incorrect check for (e)ac3 audio support
This commit is contained in:
parent
0d3456dc4f
commit
c0efec8296
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user