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

MediaTrackCapabilities properties are string[]/boolean[]/DoubleRange/ULongRange, not ConstrainDOMString/ConstrainBoolean/ConstrainDouble/ConstrainULong #38249

Open
rcyeh opened this issue Feb 20, 2025 · 0 comments
Labels
area: MediaStreams Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@rcyeh
Copy link

rcyeh commented Feb 20, 2025

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getCapabilities

What specific section or headline is this issue about?

https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getCapabilities#return_value

What information was incorrect, unhelpful, or incomplete?

getCapabilities() returns a MediaTrackCapabilities, but the elements seem to be describing a MediaTrackConstraintSet, with all property types being ConstrainDOMString/ConstrainBoolean/ConstrainDouble/ConstrainULong.

What did you expect to see?

I expected the types of the MediaTrackCapabilities properties to be string[]/boolean[]/DoubleRange/ULongRange.

Do you have any supporting links, references, or citations?

https://www.w3.org/TR/mediacapture-streams/#media-track-capabilities

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@rcyeh rcyeh added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Feb 20, 2025
@github-actions github-actions bot added the Content:WebAPI Web API docs label Feb 20, 2025
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! area: MediaStreams and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: MediaStreams Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

2 participants