浏览代码

fix: read startBitrate from config

dev1
xinfei.wu 6 年前
父节点
当前提交
f5eb00d498
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/connectivity/ConnectionQuality.js

+ 2
- 2
modules/connectivity/ConnectionQuality.js 查看文件

@@ -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

正在加载...
取消
保存