We need to decide on the final property names for HTMLMediaElement and document. Also we need to decide on the enum type names and values.
For now, #1 has document.autoplayPolicy as an attribute, and HTMLMediaElement.canAutoplay() as a method that returns a promise.
In webidl form, it would go something like this:
enum AutoPlayState {
"allowed",
"allowed-muted",
"disallowed",
"prompt"
};
partial interface document {
readonly attribute AutoPlayState policy;
};
partial interface HTMLMediaElement {
Promise<void> canAutoPlay();
};
We need to decide on the final property names for
HTMLMediaElementanddocument. Also we need to decide on the enum type names and values.For now, #1 has
document.autoplayPolicyas an attribute, andHTMLMediaElement.canAutoplay()as a method that returns a promise.In webidl form, it would go something like this: