| Index: content/test/data/media/getusermedia.html
|
| diff --git a/content/test/data/media/getusermedia.html b/content/test/data/media/getusermedia.html
|
| index 49b2beced94c9c58e83ad4489b6fce70fd80393b..e8aac18fa23ff874324853323a95a16727146d84 100644
|
| --- a/content/test/data/media/getusermedia.html
|
| +++ b/content/test/data/media/getusermedia.html
|
| @@ -11,17 +11,15 @@
|
| });
|
|
|
| function getSources() {
|
| - navigator.mediaDevices.enumerateDevices().then(function(devices) {
|
| + MediaStreamTrack.getSources(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.deviceId,
|
| - 'kind': device.kind == "audioinput" ? "audio" : "video",
|
| + 'id': device.id,
|
| + 'kind': device.kind,
|
| 'label': device.label,
|
| - 'facing': ""
|
| + 'facing': device.facing
|
| });
|
| }
|
| sendValueToTest(JSON.stringify(results));
|
|
|