Possibly linux@lemmy.zip to Firefox@lemmy.mlEnglish · 10 months agoHow do a switch to the front camera for web sites?message-squaremessage-square5fedilinkarrow-up120arrow-down11file-text
arrow-up119arrow-down1message-squareHow do a switch to the front camera for web sites?Possibly linux@lemmy.zip to Firefox@lemmy.mlEnglish · 10 months agomessage-square5fedilinkfile-text
minus-squarebleistift2@feddit.delinkfedilinkEnglisharrow-up7·edit-210 months agoThe 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.
minus-squarerbn@feddit.chlinkfedilinkarrow-up2·10 months agoDoes it work to change that on-the-fly by manipulating the HTML source via the browser’s inbuilt dev tools?
minus-squarebleistift2@feddit.delinkfedilinkEnglisharrow-up2·edit-210 months agoIt should, but I’m not going to test it because debugging for a smartphone is annoying as fuck.
minus-squarePossibly linux@lemmy.zipOPlinkfedilinkEnglisharrow-up1·10 months agoActually it doesn’t even help the dev as it is a qr code scanner that polls the camera continuously
minus-squarejmcs@discuss.tchncs.delinkfedilinkarrow-up4·10 months agoEven 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.
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.
Does it work to change that on-the-fly by manipulating the HTML source via the browser’s inbuilt dev tools?
It should, but I’m not going to test it because debugging for a smartphone is annoying as fuck.
Actually it doesn’t even help the dev as it is a qr code scanner that polls the camera continuously
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.