How do I make the camera work on Android and IOS?

Get help using Construct 2

Post » Tue Aug 09, 2016 11:21 am

Message: RyoHazuki can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Hello everybody, I'm with a big problem... I want to do an application where I can use the front camera from the Mobile Devices...

So, first I tried to use the native user media from construct 2... when I tested in my computer it worked perfectly but it didn't work on the phones... After research a little bit I found a plugin made by http://cranberrygame.github.io/

Ok, then I installed the plugin and I tried to do a test... however when I generate my PhoneGap Application I have this return:

Error - Plugin (or a specific branch or tag) cannot be cloned from the repository: https://github.com/cranberrygame/com.cr ... 9ba1bde6e7

So, I don't know what else I can do, this forum is my last chance to get this working, if not I sadly will need to create my application using Adobe Air that I really don't want.

Thank you guys!
B
4
Posts: 3
Reputation: 208

Post » Wed Aug 10, 2016 6:41 am

Ok now I got the fallowing plugins:

cranberrygame_CordovaCapture_1.0.12.c2addon
cranberry_CordovaCamera_1.0.17.c2addon

Has someone used it before? how I use it?

Thank you.
B
4
Posts: 3
Reputation: 208

Post » Wed Aug 10, 2016 7:10 am

The problem was solved finally :)

Thank you everyone.
B
4
Posts: 3
Reputation: 208

Post » Sun Apr 30, 2017 6:12 pm

@RyoHazuki how did you solve the problem? I need to take snapshots from mobile device back camera regularly (4 times per second) like I would do with the User Media plugin action "Snapshot". However, User Media cannot access mobile device camera from a native application (cordova). Cranberrygame cordova plugins can access mobile device camera, but show the standard photo capture prompting the user to take the photo manually. I need to take photos automatically without user input (except maybe the permission to acccess the camera the first time the app is used. How can I do this? Do you know any plugin which does the same as User Media "snapshot" action does?
B
11
S
3
G
1
Posts: 19
Reputation: 905


Return to How do I....?

Who is online

Users browsing this forum: JackTYGA, zill and 35 guests