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:
youennf 2018-09-26 10:47:32 +00:00 committed by moz-wptsync-bot
parent 1e8f39e477
commit d99e43414c

View File

@ -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