From 2a2702c13a43fd5ec5a23e76093bc65bb4f5aa15 Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 17 Aug 2015 17:05:03 -0500 Subject: [PATCH] Adds params for enabling fake devices on firefox. --- modules/RTC/RTCUtils.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/RTC/RTCUtils.js b/modules/RTC/RTCUtils.js index 9f29dc257f..cd6ad36220 100644 --- a/modules/RTC/RTCUtils.js +++ b/modules/RTC/RTCUtils.js @@ -131,6 +131,15 @@ function getConstraints(um, resolution, bandwidth, fps, desktopStream) { constraints.video.mandatory.minFrameRate = fps; } + // we turn audio for both audio and video tracks, the fake audio & video seems to work + // only when enabled in one getUserMedia call, we cannot get fake audio separate by fake video + // this later can be a problem with some of the tests + if(RTCBrowserType.isFirefox() && config.firefox_fake_device) + { + constraints.audio = true; + constraints.fake = true; + } + return constraints; }