Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Deprecate canPlayType for media elements in favor media capabilities #10460

Open
marcoscaceres opened this issue Jul 4, 2024 · 1 comment
Open
Labels
removal/deprecation Removing or deprecating a feature topic: media

Comments

@marcoscaceres
Copy link
Member

marcoscaceres commented Jul 4, 2024

What is the issue with the HTML Standard?

It may not be possible to deprecate the canPlayType() API, but maybe we can encourage user agents to display a warning and also discourage further specify these capabilities for media elements and instead use w3c.github.io/media-capabilities/.

@marcoscaceres marcoscaceres changed the title Deprecate isTypeSupported and canPlayType for media elements in favor media capabilities Deprecate canPlayType for media elements in favor media capabilities Jul 4, 2024
@annevk
Copy link
Member

annevk commented Jul 4, 2024

That looks like a lot more sophisticated API indeed, but for a number of cases prolly all you need is a tri-state? It at least seems much more involved to invoke that API if all you're after is some information about a MIME type.

@annevk annevk added removal/deprecation Removing or deprecating a feature topic: media labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
removal/deprecation Removing or deprecating a feature topic: media
Development

No branches or pull requests

2 participants