Closed Bug 1581458 Opened 6 years ago Closed 6 years ago

navigator.mediaDevices.ondevicechange event doesn't fire

Categories

(Core :: WebRTC, defect)

69 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1397977

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

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

Component: Untriaged → WebRTC
Flags: needinfo?(sahil)
Product: Firefox → Core

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.

Flags: needinfo?(jib)

Yes we implement this on all devices, but we require gum permission atm, even from the page in focus, which is not to spec.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(jib)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.