Cameras selection doesn't work on Firefox
See original GitHub issueBug, feature request, or proposal:
Bug
What is the current behavior?
On Firefox, after having found all the available cameras, the select box that let the user choose which device to use, doesn’t show up.
This issue still persist if I force the selection of the first available camera found.
Chrome, on the other hand, works great!
What are the steps to reproduce?
You can reproduce the issue opening this link with Firefox
Which versions of Angular, ngx-scanner
, OS, TypeScript, browsers are affected?
Angular version: 5.2.9 ngx-scanner: 1.1.0-dev.c32019 Browser: Firefox Quantum 59.0.3 (64 bit)
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Cannot select front or rear camera | Firefox Support Forum
Cannot select front or rear camera ... Hi,. When I go to Facebook on Mozilla and try to use the messenger app to...
Read more >5 Ways to Fix Your Webcam if It's Not Working In Firefox
1. Update your browser Select Help. · 2. Run camera troubleshooter. Hit the Windows key and select Settings. · 3. Disable extensions Select...
Read more >How to select your camera and audio source on Chrome ...
To choose or switch your microphone or camera in Firefox, you'll need to go into your video call. From there, click on the...
Read more >Can't select different Webcam : r/firefox - Reddit
But it doesn't work on these sites (I'm stuck with only the front): ... Here you can select the camera from a list...
Read more >Allow access to camera in Firefox : Online Help - Solutions
Details · Go to Apps, and select Firefox. · Open Permissions. · Ensure the camera and microphone are toggled on. · Restart Firefox....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Working on my local but not in domain
Hi again.
I’m just writing a little note here. Maybe in this way other people that find themself stucked with a issue like mine, can find a little help.
After a lot of testing, I discoverd the ngx-scanner works really great in most of cases but not in mine. I’m using VMWare Clarity as a HTML/CSS framework and for some reason, the component find the devices in my pc/smarphone, but it never shows up the selectbox with the device selection.
I realy couldn’t understand what whas the problem util yesterday when, inspired from a stackoverflow question, I tried to import in the component
{ChangeDetectorRef} from '@angular/core';
.This component has a fuctions called detectChanges(); witch I have to call every time an event occures (for example every time that the browser finds new devices:
displayCameras(cameras: MediaDeviceInfo[]) { console.debug('Devices: ', cameras); this.availableDevices = cameras; this.ref.detectChanges(); }
Or every time the users changes the device
onDeviceSelectChange(selectedValue: string) { console.debug('Selection changed: ', selectedValue); this.selectedDevice = this.scanner.getDeviceById(selectedValue); this.ref.detectChanges(); }
In this way, everything works great!