| Index: chrome/test/data/webrtc/media_devices.js
|
| diff --git a/chrome/test/data/webrtc/media_devices.js b/chrome/test/data/webrtc/media_devices.js
|
| index 9a0dfb216c9c8de764ba7056febe32bbf26b412e..356184e3b5e6dbf75e148f89f0a5be47aba36613 100644
|
| --- a/chrome/test/data/webrtc/media_devices.js
|
| +++ b/chrome/test/data/webrtc/media_devices.js
|
| @@ -29,7 +29,7 @@ function getSources() {
|
|
|
| /**
|
| * Queries for video input devices on the current system using the
|
| - * getMediaDevices API.
|
| + * getSources API.
|
| *
|
| * This does not guarantee that a getUserMedia with video will succeed, as the
|
| * camera could be busy for instance.
|
| @@ -38,10 +38,10 @@ function getSources() {
|
| * no-video-input-devices otherwise.
|
| */
|
| function hasVideoInputDeviceOnSystem() {
|
| - navigator.getMediaDevices(function(devices) {
|
| + MediaStreamTrack.getSources(function(devices) {
|
| var hasVideoInputDevice = false;
|
| devices.forEach(function(device) {
|
| - if (device.kind == 'videoinput')
|
| + if (device.kind == 'video')
|
| hasVideoInputDevice = true;
|
| });
|
|
|
|
|