Browse Source

fix: read startBitrate from config

dev1
xinfei.wu 6 years ago
parent
commit
f5eb00d498
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/connectivity/ConnectionQuality.js

+ 2
- 2
modules/connectivity/ConnectionQuality.js View File

212
         this._timeLastBwCapRemoved = -1;
212
         this._timeLastBwCapRemoved = -1;
213
 
213
 
214
         // We assume a global startBitrate value for the sake of simplicity.
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
         // TODO: consider ignoring these events and letting the user of
219
         // TODO: consider ignoring these events and letting the user of

Loading…
Cancel
Save