Page 1 of 1
How can I access preview frames when using camera?
Posted: Tue Jul 16, 2013 10:00 am
by Kyou Hee Lee
How can I access preview frames when using camera? Is there a similar function to Android API's onPreviewFrame (byte[] data, Camera camera). I'd like to develop a scanner app like barcode scanner, but scanning other things. So, I need to retrieve preview frames of camera component but don't know hot to do that.
How can I access preview frames when using camera?
Posted: Tue Jul 16, 2013 10:27 am
by Maryna Brodina
Hello! You would need to check if it's possible to do and if so - serach for PhoneGap plugin online as there is no standard method to do that.
How can I access preview frames when using camera?
Posted: Tue Jul 16, 2013 12:03 pm
by Kyou Hee Lee
It seems that PhoneGap doesn't offer that kind of method. Is there an alternative way?
How can I access preview frames when using camera?
Posted: Tue Jul 16, 2013 12:08 pm
by Maryna Brodina
Another way is to use JS to do that, but it would need to be coded by you.
How can I access preview frames when using camera?
Posted: Tue Jul 16, 2013 4:13 pm
by Kyou Hee Lee
Thank you for your help! Can you tell me more? Is there any sample JS code? what keyword can I search with?
How can I access preview frames when using camera?
Posted: Tue Jul 16, 2013 5:30 pm
by Kateryna Grynko
Hello,
You would have to create a PhoneGap plug-in implements the needed functionality. You can write it using API Android in Java.
How can I access preview frames when using camera?
Posted: Thu Jul 18, 2013 10:16 am
by Kyou Hee Lee
I'd like to make it clear. If I make a PhoneGap plug-in using Android native API in Java, does it still work in iOS device? Also, it can be a hybrid app as well as web app? I'm new to appery but appery seems very flexible!
How can I access preview frames when using camera?
Posted: Thu Jul 18, 2013 11:15 am
by Maryna Brodina
Hello!
[quote:]If I make a PhoneGap plug-in using Android native API in Java, does it still work in iOS device?[/quote] no, it won't work on iOS devices, you would need to create one more plugin for iOS
[quote:]Also, it can be a hybrid app as well as web app?[/quote] you can't use any PhoneGap plugin for web app. For web app you can use only HTML5 features.