w3c / webrtc-svc

W3C Scalable Video Coding (SVC) Extension for WebRTC
https://w3c.github.io/webrtc-svc/
Other
39 stars 14 forks source link

Returning the default scalabilityMode problematic after fallback #75

Closed Orphis closed 1 year ago

Orphis commented 1 year ago

Currently, if we assume that applications' code is unaware of the SVC API, the following could happen with a user agent not supporting the SVC API:

With a user agent supporting the SVC API:

The problem is that it is not possible for the user agent to know whether the user would prefer the default mode automatically for each encoder, even after calling get/setParameters() or if the user intended to lock in a specific value.

As this is a backwards compatibility problem, I propose that we change getParameters() to only return a value that was previously set. If no value is set, then the user agent should use the default value for the encoder. Users wanting to know the current value used can refer to the stats.

aboba commented 1 year ago

I think that makes sense.