Pārlūkot izejas kodu

Adds params for enabling fake devices on firefox.

master
damencho 10 gadus atpakaļ
vecāks
revīzija
2a2702c13a
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9
    0
      modules/RTC/RTCUtils.js

+ 9
- 0
modules/RTC/RTCUtils.js Parādīt failu

131
         constraints.video.mandatory.minFrameRate = fps;
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
     return constraints;
143
     return constraints;
135
 }
144
 }
136
 
145
 

Notiek ielāde…
Atcelt
Saglabāt