-
Notifications
You must be signed in to change notification settings - Fork 864
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
Rear camera (ios) #105
Comments
You have to change the facingMode parameter to "environment" |
JoseCDB, Could you provide example, please? |
My Code is: Instascan.Camera.getCameras().then(function (cameras) { There is no difference what kind of number I set (0 or 1), the front camera is always displayed |
Hi rus-bit, I forked instascan with some changes to make it work on my project. This change is in camera.js file You can check it out here: https://github.com/JoseCDB/instascan/tree/ios-rear-camera Hope it helps |
JoseCDB, thank you! Please , How can i get instascan.min.js from you source code? The Folder distr does not exist. |
@JoseCDB |
Hello @labregowski. I succeeded to build instascan.js file from @JoseCDB fork from https://github.com/JoseCDB/instascan/tree/ios-rear-camera. But now, i haven't any IOS device to check correct work |
Hi @rus-bit. I'll try to get an iOS device to test this soon. Could you tell me how did you build the instascan.min.js? I am still not being able to do it. I'd be thankful to you. |
Hi, @labregowski You must install gulp, and many dependecies, listed in file gulpfile.js and package.json
then see output to resolve any problems. my package.json file fragment: Hope it helps |
Hi @rus-bit . BUt might be related to the parameters in the script (not the instascan.min,js)
Might I need to change this? what do you think? |
hi @labregowski . We tested too, and it works fine. |
Hello,
i have an issue, i cant switch from front to rear camera.
I tried with cameras[1] <- works great on Android device, for iOS is still front camera
I tried with video: { facingMode: 'environment'} <- then camera dont display
Do u know how to force rear Camera on iOS ?
BestRegards
The text was updated successfully, but these errors were encountered: