w3c / mediacapture-screen-share-extensions

Other
1 stars 0 forks source link

Fire configurationchange event in case the track is changing of source #5

Open youennf opened 2 years ago

youennf commented 2 years ago

It seems potentially useful to fire the configurationchange event (defined in mediacapture-extensions) when the source of the track is changing. This may help the web app look at the surface type and other meaningful parameters.

eladalon1983 commented 2 years ago

Are you thinking DisplayMediaStreamConstraints.surfaceSwitching here?

youennf commented 2 years ago

Right, although the spec already allows to change the track source even without surfaceSwitching.

eladalon1983 commented 2 years ago

Right, although the spec already allows to change the track source even without surfaceSwitching.

Yes, surfaceSwitching is just a way for the application to hint to the user agent as to whether it wants such a mechanism to be exposed to the user.

Firing an event of some sort seems very useful indeed.