Skip to content

Commit

Permalink
fix: remove numeric symbols as its not compatible with metro for reac…
Browse files Browse the repository at this point in the history
…t-native

ref: facebook/metro#645
  • Loading branch information
santhoshvai committed Nov 7, 2022
1 parent c3b5621 commit 3256af3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/client/src/rtc/videoLayers.ts
Expand Up @@ -7,10 +7,10 @@ export const findOptimalVideoLayers = async (mediaStream: MediaStream) => {
const steps: [number, number, number][] = [
// [4096, 2160], // 4K
// [1920, 1080, 3_072_000], // Full-HD
[1280, 720, 1_280_000], // HD
[640, 480, 768_000], // VGA
[320, 240, 384_000], // QVGA
[160, 120, 128_000],
[1280, 720, 1280_000], // HD
[640, 480, 768000], // VGA
[320, 240, 384000], // QVGA
[160, 120, 128000],
];

const optimalVideoLayers: OptimalVideoLayer[] = [];
Expand Down Expand Up @@ -43,20 +43,20 @@ export const findOptimalVideoLayers = async (mediaStream: MediaStream) => {
export const defaultVideoLayers: OptimalVideoLayer[] = [
{
rid: 'f',
maxBitrate: 1_280_000,
maxBitrate: 1280000,
width: 1280,
height: 720,
},
{
rid: 'h',
maxBitrate: 768_000,
maxBitrate: 768000,
width: 640,
height: 480,
scaleResolutionDownBy: 2.0,
},
{
rid: 'q',
maxBitrate: 384_000,
maxBitrate: 384000,
width: 480,
height: 360,
scaleResolutionDownBy: 4.0,
Expand Down

0 comments on commit 3256af3

Please sign in to comment.