mediacapture-screen-share icon indicating copy to clipboard operation
mediacapture-screen-share copied to clipboard

Fire configurationchange event in case the track is changing of source

Open youennf opened this issue 3 years ago • 3 comments

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.

youennf avatar Jun 16 '22 18:06 youennf

Are you thinking DisplayMediaStreamConstraints.surfaceSwitching here?

eladalon1983 avatar Jun 16 '22 18:06 eladalon1983

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

youennf avatar Jun 16 '22 18:06 youennf

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.

eladalon1983 avatar Jun 16 '22 18:06 eladalon1983