|
@@ -57,6 +57,13 @@ const kSimulcastFormats = [
|
57
|
57
|
min: 30 }
|
58
|
58
|
];
|
59
|
59
|
|
|
60
|
+/**
|
|
61
|
+ * The maximum bitrate to use as a measurement against the participant's current
|
|
62
|
+ * bitrate. This cap helps in the cases where the participant's bitrate is high
|
|
63
|
+ * but not enough to fulfill high targets, such as with 1080p.
|
|
64
|
+ */
|
|
65
|
+const MAX_TARGET_BITRATE = 2500;
|
|
66
|
+
|
60
|
67
|
/**
|
61
|
68
|
* The initial bitrate for video in kbps.
|
62
|
69
|
*/
|
|
@@ -353,7 +360,7 @@ export default class ConnectionQuality {
|
353
|
360
|
target
|
354
|
361
|
= getTarget(isSimulcastOn, resolution, millisSinceStart);
|
355
|
362
|
|
356
|
|
- target = 0.9 * target;
|
|
363
|
+ target = Math.min(0.9 * target, MAX_TARGET_BITRATE);
|
357
|
364
|
|
358
|
365
|
quality = 100 * this._localStats.bitrate.upload / target;
|
359
|
366
|
|