Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add <audio> and <video> features #1337

Merged
merged 4 commits into from
Jul 12, 2024
Merged

Conversation

foolip
Copy link
Collaborator

@foolip foolip commented Jul 9, 2024

The overall status matches caniuse with these exceptions:

  • Chrome 4 is the earliest possible version in caniuse, so it cannot
    match BCD's claim of Chrome 3.
  • Partial support due to parts of the API being unavailable or not
    working isn't reproduced. This is clear from the statuses of the
    individual BCD keys instead.

HTMLMediaElement is made part of

Everything is Baseline high except for volume and playbackRate.

The overall status matches caniuse with these exceptions:

- Chrome 4 is the earliest possible version in caniuse, so it cannot
  match BCD's claim of Chrome 3.
- Partial support due to parts of the API being unavailable or not
  working isn't reproduced. This is clear from the statuses of the
  individual BCD keys instead.

HTMLMediaElement is made part of <video> only for now.

Everything is Baseline high except for volume and playbackRate.
@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Jul 9, 2024
features/audio.yml Outdated Show resolved Hide resolved
features/video.yml Outdated Show resolved Hide resolved
Comment on lines +325 to +339
# baseline: false
# support:
# chrome: "3"
# chrome_android: "18"
# edge: "12"
# firefox: "3.5"
# firefox_android: "4"
# safari: "3.1"
- api.HTMLMediaElement.volume

# baseline: false
# support:
# safari: "3.1"
# safari_ios: "3"
- api.HTMLMediaElement.playbackRate
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, both of these have dodgy-looking data. Someday someone might come along and fix it 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

playbackRate is about only Safari supporting a negative playback rate. The spec does allow for throwing an exception "if the given value is not supported by the user agent" but doesn't require any specific playback rates to be supported.

volume is about it not doing anything on iOS.

foolip and others added 2 commits July 9, 2024 21:32
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
Copy link
Collaborator Author

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddbeck tweaking the descriptions a bit...

features/audio.yml Outdated Show resolved Hide resolved
features/video.yml Outdated Show resolved Hide resolved
Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ddbeck ddbeck merged commit b1633a1 into web-platform-dx:main Jul 12, 2024
3 checks passed
@foolip foolip deleted the media-elements branch July 12, 2024 10:18
@foolip
Copy link
Collaborator Author

foolip commented Jul 12, 2024

A summary of a side-channel chat between me and @ddbeck. The reason to avoid "plays" in the description here would be the precedent that we need to pick a verb for every element, leading to things like "<div> shows content". However, we'll just not do that, "play" works for media elements and for other elements we might have to use a different structure.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants