Adds FF fake device settings when creating local tracks.

This commit is contained in:
damencho 2016-01-25 13:44:48 -06:00
parent c2cfd4d6e2
commit 5bd0074eff
1 changed files with 3 additions and 1 deletions

View File

@ -177,7 +177,9 @@ export default {
return JitsiMeetJS.createLocalTracks({ return JitsiMeetJS.createLocalTracks({
// copy array to avoid mutations inside library // copy array to avoid mutations inside library
devices: devices.slice(0), devices: devices.slice(0),
resolution: config.resolution resolution: config.resolution,
// adds any ff fake device settings if any
firefox_fake_device: config.firefox_fake_device
}).catch(function (err) { }).catch(function (err) {
console.error('failed to create local tracks', ...devices, err); console.error('failed to create local tracks', ...devices, err);
APP.statistics.onGetUserMediaFailed(err); APP.statistics.onGetUserMediaFailed(err);