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