2014-09-20 10:20:41 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://dev.w3.org/2011/webrtc/editor/getusermedia.html
|
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
|
|
|
[Func="Navigator::HasUserMediaSupport"]
|
|
|
|
interface MediaDevices : EventTarget {
|
2016-08-11 20:04:49 +03:00
|
|
|
[Pref="media.ondevicechange.enabled"]
|
|
|
|
attribute EventHandler ondevicechange;
|
2015-07-02 21:21:49 +03:00
|
|
|
MediaTrackSupportedConstraints getSupportedConstraints();
|
2014-09-20 10:20:41 +04:00
|
|
|
|
2017-09-18 04:52:06 +03:00
|
|
|
[Throws, NeedsCallerType]
|
2015-03-03 17:51:05 +03:00
|
|
|
Promise<sequence<MediaDeviceInfo>> enumerateDevices();
|
|
|
|
|
2017-02-01 23:43:38 +03:00
|
|
|
[Throws, NeedsCallerType]
|
2014-09-20 10:20:41 +04:00
|
|
|
Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints);
|
|
|
|
};
|