rustwasm / wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript
https://rustwasm.github.io/docs/wasm-bindgen/
Apache License 2.0
7.84k stars 1.08k forks source link

Add bindings for `MediaStreamTrack.getCapabilities` #4236

Closed DanielleHuisman closed 2 weeks ago

DanielleHuisman commented 3 weeks ago

Add bindings for MediaStreamTrack.getCapabilities and stabilize MediaTrackCapabilities (which it returns).

DanielleHuisman commented 2 weeks ago

Happy to make the change.

Just curious: what makes MediaStreamTrack stable, but not MediaTrackCapabilities? What specification or part of the specification indicates this?

daxpedda commented 2 weeks ago

Just curious: what makes MediaStreamTrack stable, but not MediaTrackCapabilities?

MediaStreamTrack should never have been made stable in the first place. Hindsight is 20/20 ofc.

What specification or part of the specification indicates this?

Basically we don't stabilize anything unless it has reached the last stage: "Recommended".

There is some nuance to this, where we can stabilize earlier if we are fairly confident that no API changes are coming. This mostly depends on evaluating the proposals issue tracker and if its so widely used API changes are very unlikely as they would break the Internet.