w3c / mediacapture-extensions

Extensions to Media Capture and Streams by the WebRTC Working Group
https://w3c.github.io/mediacapture-extensions/
Other
19 stars 14 forks source link

Clarify which event loop task will be used for track in configuration change . #86

Closed beaufortfrancois closed 1 year ago

beaufortfrancois commented 1 year ago

As originally posted by @youennf in https://github.com/w3c/mediacapture-extensions/pull/83#discussion_r1094215603, it is not very clear whether each clone track will fire in its own event loop task or in the same event loop task when the User Agent detects a change of configuration in a track's underlying source.

youennf commented 1 year ago

WebKit is currently queueing a task to fire each event. This is simpler, the small downsides is that, two cloned tracks may have different capabilities for a small amount of time.

jan-ivar commented 1 year ago

It seems common in the platform to queue a task per event fired, with some exceptions, like SRD, which cause a lot of grief to implementers.