w3c / mst-content-hint

This is the specification for the content-hint attribute. This optional hint permits MediaStreamTrack consumers such as PeerConnection or MediaRecorder to encode or process track media with methods more appropriate to the type of content that is being consumed.
https://w3c.github.io/mst-content-hint/
Other
4 stars 14 forks source link

When does the browser act on changes? #17

Closed martinthomson closed 7 years ago

martinthomson commented 7 years ago

Obviously, if a stream is actively being encoded, the browser isn't going to change its posture mid-frame. An unsupported value might cause the browser to never change its posture. This needs some advice, and maybe a feedback mechanism.

pbos commented 7 years ago

Is clarifying this useful? The browser is permitted to change its posture mid-frame and re-encode it, should it want to, but that seems like a very clunky approach to implementing this, and if it takes minutes to apply it's compliant but a "not very good" implementation. Given that no behavior is strictly defined for any of these, a no-op is also valid behavior, which is indistinguishable from this value taking years to propagate.

martinthomson commented 7 years ago

If it doesn't matter, say so.

pbos commented 7 years ago

Does changing "should adapt its decision" to something like "should adapt its decision as soon as possible" or "as soon as feasible" sound good to you?

martinthomson commented 7 years ago

It doesn't have to be ASAP. The point is that there needs to be some expectation on the part of the application about what is going to happen. That could be that it has no expectation that anything happens. Establishing that there can be no expectation is OK in this case.

pbos commented 7 years ago

Sorry that it took quite a bit to get around to it, please look at the updated text and see if that's reasonable to you. :)