Przeglądaj źródła

Adds params for enabling fake devices on firefox.

master
damencho 10 lat temu
rodzic
commit
2a2702c13a
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9
    0
      modules/RTC/RTCUtils.js

+ 9
- 0
modules/RTC/RTCUtils.js Wyświetl plik

@@ -131,6 +131,15 @@ function getConstraints(um, resolution, bandwidth, fps, desktopStream) {
131 131
         constraints.video.mandatory.minFrameRate = fps;
132 132
     }
133 133
 
134
+    // we turn audio for both audio and video tracks, the fake audio & video seems to work
135
+    // only when enabled in one getUserMedia call, we cannot get fake audio separate by fake video
136
+    // this later can be a problem with some of the tests
137
+    if(RTCBrowserType.isFirefox() && config.firefox_fake_device)
138
+    {
139
+        constraints.audio = true;
140
+        constraints.fake = true;
141
+    }
142
+
134 143
     return constraints;
135 144
 }
136 145
 

Ładowanie…
Anuluj
Zapisz