this post was submitted on 03 Feb 2024
19 points (95.2% liked)

Firefox

17938 readers
2 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 

When ever a web page uses the camera it only has access to the selfie cam

top 5 comments
sorted by: hot top controversial new old
[–] bleistift2@feddit.de 7 points 9 months ago* (last edited 9 months ago) (2 children)

The website developer can configure which camera to use. Instead of

<input type="file" accept="image/*" capture="user" />

it is

<input type="file" accept="image/*" capture="environment" />

This doesn’t help you, but it’s cool for a web dev.

[–] rbn@feddit.ch 2 points 9 months ago (1 children)

Does it work to change that on-the-fly by manipulating the HTML source via the browser's inbuilt dev tools?

[–] bleistift2@feddit.de 2 points 9 months ago* (last edited 9 months ago)

It should, but I’m not going to test it because debugging for a smartphone is annoying as fuck.

[–] possiblylinux127@lemmy.zip 1 points 9 months ago (1 children)

Actually it doesn't even help the dev as it is a qr code scanner that polls the camera continuously

[–] jmcs@discuss.tchncs.de 4 points 9 months ago

Even in that case the developer can get the list of all MediaDevices and switch between them. That's how videocall web apps allow you to change cameras both on desktop and mobile.