question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cameras selection doesn't work on Firefox

See original GitHub issue

Bug, 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.

immagine

This issue still persist if I force the selection of the first available camera found.

immagine

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:closed
  • Created 5 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
abu123raihancommented, Aug 30, 2018

Working on my local but not in domain

1reaction
matteomasoncommented, May 17, 2018

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found