Camera selection doesn't work: it always returns the front camera
Bug #1535670 reported by
David Barth
This bug report is a duplicate of:
Bug #1535818: sourceId and other constraints for getUserMedia are ignored.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libhybris (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
webbrowser-app (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When testing webrtc sample apps, I noticed that the camera selection was not working.
For example: http://
The selected camera is always the front camera.
To post a comment you must log in.
It seems there is a bug in that commit : /git.launchpad. net/~libhybris- maintainers/ libhybris/ +git/libhybris/ commit/ ?id=9baee354fe5 13020aa2197b0b0 769dd06a2585bc
https:/
+ if (ci.facing != camera_type) camera_ connect_ by_id(camera_ id, listener);
+ continue;
+
+ return android_
The continue statement will branch to the end of the loop, on the return line, as opposed to skipping to the next loop iteration.