-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSLog causes crash , if facingMode === 'user'. Ideal and exact values are ignored #450
Comments
Thank you @derMani I will look into that and fix it on next release 6.0.4 |
It's kind of weird as facingMode is a string in environment like it is in user. I will try to find what going on and improve exact and ideal support. |
Hmm, I don't know if I am doing this correctly, but I replaced the files from 6.0.3 with the changed files from #451 : On Page load, I am getting an error message in the dist js file:
|
@derMani That not going to work as cordova manipulate the iosrtc.js plugin and add line on top and end of the file.
I have added instruction on the PR #451 description for you to test. Note: I found out that if you use webrtc-adater facingMode is not working cause they overrride getUserMedia and ignore it. |
merged #451 on master will test master then release 6.0.4 |
I tried to use the facing mode and observed some interesting behavior:
It only works with
{video:{facingMode:'environment}}
It will crash with
{video:{facingMode:'user'}}
If we try to use:
video.facingMode.ideal
orvideo.facingMode.exact
, the "user mode" will always be selected.If we just use
video.facingMode = 'user'
the app will crash
The NSLog will cause a EXC_BAD_ACCESS code 1.
if we comment the NSLog out, it works like expected.
Expected behavior
We can use
video.facingMode
video.facingMode.ideal
video.facingMode.exact
with 'user' and 'environment'. The correct facing mode is used and the app will not crash.
Observed behavior
Steps to reproduce the problem
This snippet should do it:
Platform information
The text was updated successfully, but these errors were encountered: