mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 1000741 - only add the fake media constraint if not provided by the caller. r=rjesup
This commit is contained in:
parent
3a932629fe
commit
8db0aca6a4
@ -97,7 +97,9 @@ function createMediaElement(type, label) {
|
||||
* The error callback if the stream fails to be retrieved
|
||||
*/
|
||||
function getUserMedia(constraints, onSuccess, onError) {
|
||||
constraints["fake"] = FAKE_ENABLED;
|
||||
if (!("fake" in constraints)) {
|
||||
constraints["fake"] = FAKE_ENABLED;
|
||||
}
|
||||
|
||||
info("Call getUserMedia for " + JSON.stringify(constraints));
|
||||
navigator.mozGetUserMedia(constraints, onSuccess, onError);
|
||||
|
Loading…
x
Reference in New Issue
Block a user