mediacapture-extensions icon indicating copy to clipboard operation
mediacapture-extensions copied to clipboard

Alternative approach to configurationchange

Open eladalon1983 opened this issue 2 years ago • 0 comments

During the WebRTC WG's interim meeting of January 2023, I presented a proposal for a API, which will auto-pause tracks under certain conditions, and fire an event notifying the app that this has happened. This prevents incorrectly processed frames from being being placed on the wire before the Web application has time to process the event. Resources on this proposal include:

I believe configuration changes are sub-case here, which is why I proposed:

enum PauseReason {
  “top-level-navigation”,
  "surface-switch",
  “config-change”
};

I think if we adopt some variant of my proposal, we'll end up with a more useful and general API than the configurationchange event. (It is still on my backlog to respond to the feedback given during the meeting, but I sensed the room as mostly supportive of the general thrust of that proposal.)

Wdyt? @eehakkin? Others?

eladalon1983 avatar Jan 24 '23 22:01 eladalon1983