Source code

Revision control

Copy as Markdown

Other Tools

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// Source: Autoplay Policy Detection (https://w3c.github.io/autoplay/)
enum AutoplayPolicy {
"allowed",
"allowed-muted",
"disallowed"
};
enum AutoplayPolicyMediaType { "mediaelement", "audiocontext" };
[Exposed=Window]
partial interface Navigator {
AutoplayPolicy getAutoplayPolicy(AutoplayPolicyMediaType type);
AutoplayPolicy getAutoplayPolicy(HTMLMediaElement element);
AutoplayPolicy getAutoplayPolicy(AudioContext context);
};