| 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 0780dd5e5a87992907ab4e2e8a0e93595c51a976..38a7238ccef3e3e907b6af1936af3be4ea1bc4e6 100644
|
| --- a/chrome/test/data/webrtc/media_devices.js
|
| +++ b/chrome/test/data/webrtc/media_devices.js
|
| @@ -11,7 +11,19 @@
|
| * Returns the list of devices available.
|
| */
|
| function getMediaDevices() {
|
| - navigator.mediaDevices.enumerateDevices().then(function(devices) {
|
| + navigator.getMediaDevices(function(devices) {
|
| returnToTest(JSON.stringify(devices));
|
| });
|
| }
|
| +
|
| +/**
|
| + * Queries for media sources on the current system using the getSources API.
|
| + *
|
| + * Returns the list of sources available.
|
| + */
|
| +function getSources() {
|
| + MediaStreamTrack.getSources(function(sources) {
|
| + returnToTest(JSON.stringify(sources));
|
| + });
|
| +}
|
| +
|
|
|