Explorar el Código

fix: read startBitrate from config

master
xinfei.wu hace 6 años
padre
commit
f5eb00d498
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      modules/connectivity/ConnectionQuality.js

+ 2
- 2
modules/connectivity/ConnectionQuality.js Ver fichero

@@ -212,8 +212,8 @@ export default class ConnectionQuality {
212 212
         this._timeLastBwCapRemoved = -1;
213 213
 
214 214
         // We assume a global startBitrate value for the sake of simplicity.
215
-        if (options.startBitrate && options.startBitrate > 0) {
216
-            startBitrate = options.startBitrate;
215
+        if (options.config.startBitrate && options.config.startBitrate > 0) {
216
+            startBitrate = options.config.startBitrate;
217 217
         }
218 218
 
219 219
         // TODO: consider ignoring these events and letting the user of

Loading…
Cancelar
Guardar