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

RTCRtpEncodingParameters.scaleResolutionDownTo #1071

Open
henbos opened this issue Sep 16, 2024 · 1 comment
Open

RTCRtpEncodingParameters.scaleResolutionDownTo #1071

henbos opened this issue Sep 16, 2024 · 1 comment

Comments

@henbos
Copy link

henbos commented Sep 16, 2024

Request for Mozilla Position on an Emerging Web Specification

Other information

This adds a new encoding parameter to WebRTC allowing the app to say which resolution it wants to send in absolute terms ("send 360p") instead of relative terms ("downscale by 2" + frame is 720p), avoiding race conditions when the track dynamically changes size.

Example use case is sending {360p, 720p} simulcast and when dynamically disabling the 720p layer also adjusting the track size to 360p in order to avoid expensive effects processing in 720p when only 360p is sent.

See https://www.w3.org/2024/08/27-webrtc-minutes.html#t06 where this was discussed and approved by the W3C WebRTC WG.

@jan-ivar
Copy link
Member

jan-ivar commented Oct 15, 2024

I propose a positive position (disclaimer: I was involved with specifying this). Having apps express desired outcome more directly without relying on track constraints seems good for interop in the long term.

Main concerns like rotation (the specified functionality is rotation agnostic) and interaction with scaleResolutionDownBy (overrides it and throws if not present on all layers) have been addressed.

I understand this has shipped in M131.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Position is proposed
Development

No branches or pull requests

3 participants