Closed
Bug 1468454
Opened 7 years ago
Closed 7 years ago
rear camera is not taking as per Mozilla code base
Categories
(Core :: WebRTC: Audio/Video, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: kundan52, Unassigned)
References
()
Details
(Whiteboard: [need info reporter 2018-06-18])
Attachments
(1 file)
2.03 MB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36
Steps to reproduce:
as per the link https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Syntax
for using rear camera I used the below code, but its taking front camera in mobile
video: { facingMode: { exact: "environment" } }
Actual results:
its taking front camera
Expected results:
It should take Rear Camera as per your code
Updated•7 years ago
|
Group: core-security
Component: Audio/Video → WebRTC: Audio/Video
Comment 1•7 years ago
|
||
Hi kundan52, thanks for filing.
I wrote a jsfiddle to test this: https://jsfiddle.net/pehrsons/ejxu6201/
It works fine for me on release (60) and beta (61) on Android on a Samsung Galaxy S8.
On Nightly (62) I get OverconstrainedError, so that looks like another bug on our end. I'll file one.
On neither version I hit the actual results you reported however. Could you verify whether you see the same symptoms on my fiddle, or whether they match mine?
If the former, especially if we're starting the wrong camera on 60 or 61, what device are you seeing this on and what Android flavor/version is it running?
Flags: needinfo?(kundan52)
Updated•7 years ago
|
Whiteboard: [need info reporter 2018-06-18]
Hi Andreas, thankyou for your time,
But I still face the issue using your link https://jsfiddle.net/pehrsons/ejxu6201/
error in desktop browser:
BAM: OverconstrainedError, Constraints could be not satisfied.
screenshot image url: https://ibb.co/d1NDAJ
Mobile Browser
Front camera is working (user)
but the back camera is not working throwing an error I check 3 mobile devices
screenshot image url: https://ibb.co/hTWvPd
Flags: needinfo?(kundan52) → needinfo?(apehrson)
Comment 3•7 years ago
|
||
(In reply to kundan52 from comment #2)
> Hi Andreas, thankyou for your time,
> But I still face the issue using your link
> https://jsfiddle.net/pehrsons/ejxu6201/
>
> error in desktop browser:
>
> BAM: OverconstrainedError, Constraints could be not satisfied.
>
> screenshot image url: https://ibb.co/d1NDAJ
>
> Mobile Browser
>
> Front camera is working (user)
>
> but the back camera is not working throwing an error I check 3 mobile
> devices
>
> screenshot image url: https://ibb.co/hTWvPd
Hmm, so is the behavior here different from what you originally reported? What's the difference in code between those apps?
I think this is expected on desktop, but for mobile it should work. From the error you see it looks like we pick the right camera but for some reason it doesn't start. Which devices (brand/model) did this fail on? Does the camera that failed to start in Firefox work in other apps?
Thanks for following through on this. It's important that we understand the root cause before speculating in a fix.
Flags: needinfo?(apehrson) → needinfo?(kundan52)
Updated•7 years ago
|
Priority: -- → P3
Comment 5•7 years ago
|
||
Yes, I cannot reproduce and the reporter is not responding with more details.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(kundan52)
Flags: needinfo?(apehrson)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•