Re: [mediacapture-main] Should devicechange fire when the device info changes? (#966)

To me, the primary use case for `devicechange` is headset insertion detection. Specifically: detecting the user act of plugging in or putting on their headphones, and reacting to that action like they had pressed a key on their keyboard.

Many VC sites rely on it for that: they either auto-switch to the headset mic upon insertion, or trigger a toast message with a button to conveniently and immediately switch to the headset mic. Firing it for other reasons may interfere with that.

For example: a user puts on their AirPods while joining a meeting or meeting lobby (not uncommon).

If getUserMedia always fires `devicechange` and the user has more than one device of a kind, how is the site to know whether the user just inserted that second device or not? 

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/966#issuecomment-1727807059 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 20 September 2023 14:06:45 UTC