navigator.mediaDevices.ondevicechange event doesn't fire
Categories
(Core :: WebRTC, defect)
Tracking
()
People
(Reporter: sahil, Unassigned, NeedInfo)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36
Steps to reproduce:
I am follow the below code to update the dynamic time device changes. That is any new input or output of device.
https://docs.w3cub.com/dom/mediadevices/ondevicechange/
But navigator.mediaDevices.ondevicechange is not fire in real time.
code : "
navigator.mediaDevices.ondevicechange = event => {
console.log('ondevicechange');
this.setCapability();
};
"
Actual results:
navigator.mediaDevices.ondevicechange not working
Expected results:
Mozilla version 69
Comment 1•6 years ago
|
||
Hi @Sahil, add please a suitable TC or explain with STR what is needed to do attempting to reproduce the issue. Also in the doc provided... it is written " MediaDevices.ondevicechange is supported only on macOS ". Next time provide all the info before.
Additionally, I will set a component, if isn't the proper one please fell free to change it.
Regards,
Liviu
Comment 2•6 years ago
|
||
jib, we seem to implement this, do you confirm it's supposed to work? We don't have more info from the reporter, so I'm tempted to just close this.
Comment 3•6 years ago
|
||
Yes we implement this on all devices, but we require gum permission atm, even from the page in focus, which is not to spec.
Description
•