fix(rn,config) make sure VP9 is never selected

This commit is contained in:
Saúl Ibarra Corretgé 2022-12-16 10:23:54 +01:00 committed by Saúl Ibarra Corretgé
parent 12c002e015
commit 294d2c9f6e
1 changed files with 5 additions and 3 deletions

View File

@ -48,16 +48,18 @@ const INITIAL_RN_STATE: IConfig = {
// fastest to merely disable them.
disableAudioLevels: true,
// FIXME: Mobile codecs should probably be configurable separately, rather
// than requiring this override here...
p2p: {
// Temporarily disable P2P on Android while we sort out some (codec?) issues.
...(Platform.OS === 'android' ? { enabled: false } : {}), // eslint-disable-line no-extra-parens
disabledCodec: 'vp9',
preferredCodec: 'h264'
},
videoQuality: {
// FIXME: Mobile codecs should probably be configurable separately, rather
// than requiring this override here...
enforcePreferredCodec: true,
disabledCodec: 'vp9',
preferredCodec: 'vp8'
}
};