Permalink
Browse files

Conditionally specify fake in capture constraints for media capture

  • Loading branch information...
DamonOehlman committed Apr 9, 2014
1 parent b0e6c33 commit 7b6cbce0efb2010e5218dfef0ea53b514385a395
Showing with 6 additions and 1 deletion.
  1. +6 −1 index.js
View
@@ -165,7 +165,12 @@ function Media(opts) {
mandatory: {},
optional: []
},
audio: true
audio: true,
// specify the fake flag if we detect we are running in the test
// environment, on chrome this will do nothing but in firefox it will
// use a fake video device
fake: typeof __testlingConsole != 'undefined'
}
}, opts);

0 comments on commit 7b6cbce

Please sign in to comment.