Skip to content

Commit

Permalink
Conditionally specify fake in capture constraints for media capture
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonOehlman committed Apr 9, 2014
1 parent b0e6c33 commit 7b6cbce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Expand Up @@ -165,7 +165,12 @@ function Media(opts) {
mandatory: {}, mandatory: {},
optional: [] 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); }, opts);


Expand Down

0 comments on commit 7b6cbce

Please sign in to comment.