feat(rn,config) default to VP8 on mobile

VP9 is too resource intensive.

H.264 might be coming back for P2P but we need to fix support for
Android first, since it's not available with the default software codec
factory.
This commit is contained in:
Saúl Ibarra Corretgé 2022-10-04 22:08:12 +02:00 committed by Saúl Ibarra Corretgé
parent f5f689c53d
commit f935b29629
2 changed files with 6 additions and 5 deletions

View File

@ -481,7 +481,7 @@ export interface IConfig {
standard?: number; standard?: number;
}; };
}; };
minHeightForQualityLvl: { minHeightForQualityLvl?: {
[key: number]: string; [key: number]: string;
}; };
preferredCodec?: string; preferredCodec?: string;

View File

@ -52,10 +52,11 @@ const INITIAL_RN_STATE: IConfig = {
disableAudioLevels: true, disableAudioLevels: true,
p2p: { p2p: {
disabledCodec: '', preferredCodec: 'VP8'
disableH264: false, // deprecated },
preferredCodec: 'H264',
preferH264: true // deprecated videoQuality: {
preferredCodec: 'VP8'
} }
}; };