tor-browser

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

mediacapture-handle-actions.idl (836B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: The Capture-Handle Actions Mechanism (https://w3c.github.io/mediacapture-handle/actions/)
      5 
      6 partial interface MediaDevices {
      7  undefined setSupportedCaptureActions(sequence<DOMString> actions);
      8  attribute EventHandler oncaptureaction;
      9 };
     10 
     11 enum CaptureAction {
     12  "next",
     13  "previous",
     14  "first",
     15  "last"
     16 };
     17 
     18 [Exposed=Window]
     19 interface CaptureActionEvent : Event {
     20  constructor(optional CaptureActionEventInit init = {});
     21  readonly attribute CaptureAction action;
     22 };
     23 
     24 dictionary CaptureActionEventInit : EventInit {
     25  DOMString action;
     26 };
     27 
     28 partial interface MediaStreamTrack {
     29  sequence<DOMString> getSupportedCaptureActions();
     30  Promise<undefined> sendCaptureAction(CaptureAction action);
     31 };