tor-browser

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

mediastream-recording.idl (1771B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: MediaStream Recording (https://w3c.github.io/mediacapture-record/)
      5 
      6 [Exposed=Window]
      7 interface MediaRecorder : EventTarget {
      8  constructor(MediaStream stream, optional MediaRecorderOptions options = {});
      9  readonly attribute MediaStream stream;
     10  readonly attribute DOMString mimeType;
     11  readonly attribute RecordingState state;
     12  attribute EventHandler onstart;
     13  attribute EventHandler onstop;
     14  attribute EventHandler ondataavailable;
     15  attribute EventHandler onpause;
     16  attribute EventHandler onresume;
     17  attribute EventHandler onerror;
     18  readonly attribute unsigned long videoBitsPerSecond;
     19  readonly attribute unsigned long audioBitsPerSecond;
     20  readonly attribute BitrateMode audioBitrateMode;
     21 
     22  undefined start(optional unsigned long timeslice);
     23  undefined stop();
     24  undefined pause();
     25  undefined resume();
     26  undefined requestData();
     27 
     28  static boolean isTypeSupported(DOMString type);
     29 };
     30 
     31 dictionary MediaRecorderOptions {
     32  DOMString mimeType = "";
     33  unsigned long audioBitsPerSecond;
     34  unsigned long videoBitsPerSecond;
     35  unsigned long bitsPerSecond;
     36  BitrateMode audioBitrateMode = "variable";
     37  DOMHighResTimeStamp videoKeyFrameIntervalDuration;
     38  unsigned long videoKeyFrameIntervalCount;
     39 };
     40 
     41 enum BitrateMode {
     42  "constant",
     43  "variable"
     44 };
     45 
     46 enum RecordingState {
     47  "inactive",
     48  "recording",
     49  "paused"
     50 };
     51 
     52 [Exposed=Window]
     53 interface BlobEvent : Event {
     54  constructor(DOMString type, BlobEventInit eventInitDict);
     55  [SameObject] readonly attribute Blob data;
     56  readonly attribute DOMHighResTimeStamp timecode;
     57 };
     58 
     59 dictionary BlobEventInit : EventInit {
     60  required Blob data;
     61  DOMHighResTimeStamp timecode;
     62 };