New issue
Advanced search Search tips

Issue 893745 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

mediadevices.ondevicechange not enabled on Android?

Project Member Reported by chfremer@chromium.org, Oct 9

Issue description

I am trying to find out why the integration test I am adding in https://chromium-review.googlesource.com/c/chromium/src/+/1237379 does not pass on Android.

In my investigation I found that blink::MediaDevices::StartObserving() does not appear to get called on Android, while it does get called on Linux. If my understanding is correct, the call should happen as a reaction to the JavaScript side doing something like

navigator.mediaDevices.ondevicechange = function(event) {
    console.log('Received event');
};

which should then trigger a call to 

MediaDevices::AddedEventListener().

Is this supposed to work on Android or is there any mechanism by which this is disabled on this platform?
 
Cc: -guidou@chromium.org chfremer@chromium.org
Owner: guidou@chromium.org
Status: Assigned (was: Untriaged)
guidou@: Assigning to you hoping that you may be able to answer this or triage to the right person.
Labels: -Pri-1 Pri-2
Yes, this is not enabled on Android because device changes are (or were) not detected on that platform.
I did a code search and I still see that calls to SystemMonitor::ProcessDevicesChanged() are only from from Mac, Linux, Windows and CrOS.
Once a reasonable amount of monitoring is available for Android we can enable it.

Sign in to add a comment