Chromium Code Reviews| Index: content/test/data/media/getusermedia.html |
| diff --git a/content/test/data/media/getusermedia.html b/content/test/data/media/getusermedia.html |
| index e8aac18fa23ff874324853323a95a16727146d84..49b2beced94c9c58e83ad4489b6fce70fd80393b 100644 |
| --- a/content/test/data/media/getusermedia.html |
| +++ b/content/test/data/media/getusermedia.html |
| @@ -11,15 +11,17 @@ |
| }); |
| function getSources() { |
| - MediaStreamTrack.getSources(function(devices) { |
| + navigator.mediaDevices.enumerateDevices().then(function(devices) { |
| document.title = 'Media devices available'; |
| var results = []; |
| for (var device, i = 0; device = devices[i]; ++i) { |
| + if (device.kind != "audioinput" && device.kind != "videoinput") |
| + continue; |
| results.push({ |
| - 'id': device.id, |
| - 'kind': device.kind, |
| + 'id': device.deviceId, |
| + 'kind': device.kind == "audioinput" ? "audio" : "video", |
| 'label': device.label, |
| - 'facing': device.facing |
| + 'facing': "" |
|
hbos_chromium
2016/11/03 10:25:40
I don't think this is used, can 'facing' be remove
Guido Urdaneta
2016/11/03 11:41:10
I'll keep it for compatibility for now.
|
| }); |
| } |
| sendValueToTest(JSON.stringify(results)); |