tor-browser

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

autoplay-detection.idl (577B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Autoplay Policy Detection (https://w3c.github.io/autoplay/)
      5 
      6 enum AutoplayPolicy {
      7  "allowed",
      8  "allowed-muted",
      9  "disallowed"
     10 };
     11 
     12 enum AutoplayPolicyMediaType { "mediaelement", "audiocontext" };
     13 
     14 [Exposed=Window]
     15 partial interface Navigator {
     16  AutoplayPolicy getAutoplayPolicy(AutoplayPolicyMediaType type);
     17  AutoplayPolicy getAutoplayPolicy(HTMLMediaElement element);
     18  AutoplayPolicy getAutoplayPolicy(AudioContext context);
     19 };