Procházet zdrojové kódy

Don't reference simulcastUtils of parent.

master
George Politis před 11 roky
rodič
revize
6e58fb9a39
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      simulcast.js

+ 3
- 3
simulcast.js Zobrazit soubor

@@ -224,8 +224,8 @@ SimulcastUtils.prototype._compileVideoSources = function (videoSources) {
224 224
     return sb;
225 225
 };
226 226
 
227
-function SimulcastReceiver(simulcastUtils) {
228
-    this.simulcastUtils = simulcastUtils;
227
+function SimulcastReceiver() {
228
+    this.simulcastUtils = new SimulcastUtils();
229 229
     this.logger = new SimulcastLogger('SimulcastReceiver');
230 230
 }
231 231
 
@@ -933,7 +933,7 @@ function SimulcastManager() {
933 933
     this.simulcastUtils = new SimulcastUtils();
934 934
 
935 935
     // Create remote simulcast.
936
-    this.simulcastReceiver = new SimulcastReceiver(this.simulcastUtils);
936
+    this.simulcastReceiver = new SimulcastReceiver();
937 937
 
938 938
     // Initialize local simulcast.
939 939
 

Načítá se…
Zrušit
Uložit