Skip to content

Picking names #2

@padenot

Description

@padenot

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(); 
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions