2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-09-16 10:34:57 +04:00
|
|
|
/* 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/.
|
|
|
|
*
|
|
|
|
* This is an internal IDL file
|
|
|
|
*/
|
|
|
|
|
2021-05-06 08:16:49 +03:00
|
|
|
interface nsIMediaDevice;
|
|
|
|
|
2021-03-30 10:52:13 +03:00
|
|
|
// For gUM request start (getUserMedia:request) notification,
|
|
|
|
// rawID, mediaSource and audioOutputOptions won't be set.
|
|
|
|
// For selectAudioOutput request start (getUserMedia:request) notification,
|
|
|
|
// rawID, mediaSource and constraints won't be set.
|
|
|
|
// For gUM request stop (recording-device-stopped) notification due to page
|
|
|
|
// reload, only windowID will be set.
|
|
|
|
// For gUM request stop (recording-device-stopped) notification due to track
|
|
|
|
// stop, only type, windowID, rawID and mediaSource will be set
|
|
|
|
|
|
|
|
enum GetUserMediaRequestType {
|
|
|
|
"getusermedia",
|
|
|
|
"selectaudiooutput",
|
|
|
|
"recording-device-stopped"
|
|
|
|
};
|
2017-01-19 07:24:59 +03:00
|
|
|
|
2021-04-11 06:13:30 +03:00
|
|
|
[LegacyNoInterfaceObject,
|
2019-09-27 18:26:14 +03:00
|
|
|
Exposed=Window]
|
2013-09-16 10:34:57 +04:00
|
|
|
interface GetUserMediaRequest {
|
2021-03-30 10:52:13 +03:00
|
|
|
readonly attribute GetUserMediaRequestType type;
|
2013-09-16 10:34:57 +04:00
|
|
|
readonly attribute unsigned long long windowID;
|
2014-02-14 23:32:58 +04:00
|
|
|
readonly attribute unsigned long long innerWindowID;
|
2013-09-16 10:34:57 +04:00
|
|
|
readonly attribute DOMString callID;
|
2017-01-19 07:24:59 +03:00
|
|
|
readonly attribute DOMString rawID;
|
|
|
|
readonly attribute DOMString mediaSource;
|
2021-05-06 08:16:49 +03:00
|
|
|
// The set of devices to consider
|
|
|
|
[Constant, Cached, Frozen]
|
|
|
|
readonly attribute sequence<nsIMediaDevice> devices;
|
2014-04-18 22:00:16 +04:00
|
|
|
MediaStreamConstraints getConstraints();
|
2021-03-30 10:52:13 +03:00
|
|
|
AudioOutputOptions getAudioOutputOptions();
|
2014-04-16 10:22:19 +04:00
|
|
|
readonly attribute boolean isSecure;
|
2018-01-11 01:59:55 +03:00
|
|
|
readonly attribute boolean isHandlingUserInput;
|
2013-09-16 10:34:57 +04:00
|
|
|
};
|