tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

GetUserMediaRequest.webidl (1618B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 *
      6 * This is an internal IDL file
      7 */
      8 
      9 interface nsIMediaDevice;
     10 
     11 // For gUM request start (getUserMedia:request) notification,
     12 // rawID, mediaSource and audioOutputOptions won't be set.
     13 // For selectAudioOutput request start (getUserMedia:request) notification,
     14 // rawID, mediaSource and constraints won't be set.
     15 // For gUM request stop (recording-device-stopped) notification due to page
     16 // reload, only windowID will be set.
     17 // For gUM request stop (recording-device-stopped) notification due to track
     18 // stop, only type, windowID, rawID and mediaSource will be set
     19 
     20 enum GetUserMediaRequestType {
     21    "getusermedia",
     22    "selectaudiooutput",
     23    "recording-device-stopped"
     24 };
     25 
     26 [LegacyNoInterfaceObject,
     27 Exposed=Window]
     28 interface GetUserMediaRequest {
     29  readonly attribute GetUserMediaRequestType type;
     30  readonly attribute unsigned long long windowID;
     31  readonly attribute unsigned long long innerWindowID;
     32  readonly attribute DOMString callID;
     33  readonly attribute DOMString rawID;
     34  readonly attribute DOMString mediaSource;
     35  // The set of devices to consider
     36  [Constant, Cached, Frozen]
     37  readonly attribute sequence<nsIMediaDevice> devices;
     38  MediaStreamConstraints getConstraints();
     39  AudioOutputOptions getAudioOutputOptions();
     40  readonly attribute boolean isSecure;
     41  readonly attribute boolean isHandlingUserInput;
     42 };