mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 1493565 [wpt PR 13181] - Make use of navigator.mediaDevices.getUserMedia instead of navigator.getUserMedia, a=testonly
Automatic update from web-platform-testsMake use navigator.mediaDevices.getUserMedia (#13181) -- wpt-commits: 7bbbe6e9b15be0f972438a7cad7879184711d7ec wpt-pr: 13181
This commit is contained in:
parent
1e8f39e477
commit
d99e43414c
@ -13,7 +13,7 @@
|
||||
// mic/camera has been explicitly allowed by feature policy.
|
||||
function promise_factory(allowed_features) {
|
||||
return new Promise((resolve, reject) => {
|
||||
navigator.getUserMedia({video: true, audio: true}).then(
|
||||
navigator.mediaDevices.getUserMedia({video: true, audio: true}).then(
|
||||
function(stream) {
|
||||
// If microphone is allowed, there should be at least one microphone
|
||||
// in the result. If camera is allowed, there should be at least one
|
||||
|
Loading…
Reference in New Issue
Block a user