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)

60 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kundan52, Unassigned)

References

()

Details

(Whiteboard: [need info reporter 2018-06-18])

Attachments

(1 file)

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
Group: core-security
Component: Audio/Video → WebRTC: Audio/Video
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)
See Also: → 1469319
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)
(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)
Priority: -- → P3
Andreas, should we close this bug? Thanks
Flags: needinfo?(apehrson)
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.

Attachment

General

Creator:
Created:
Updated:
Size: