Phonegap barcodescanner plugin: use font camera option - ios

I've managed to make my app use the front camera via this website.
By changing the code I can decide which camera the app will use.
I want my users to make that decision though, so I'm looking for a way to implement this... For example by putting a checkbox on index.html or by putting a button on the scanning-screen which swaps the camera.
Does anyone have any idea how to do this?
I would be very thankful...

Related

xamarin forms livecast-like page-inline camera

I was wondering if anyone here knows how to add a camera area like this one(similar to snapchat I guess) in Xamarin Forms (preferably,mainly with XAML)Camera area is suppose to have a livecast & it is going to be on iOS
needed this screen:
I tried Xam.Plugins.Media but couldn't manage to create the needed screen
The media plugin, goes into the platform specific Camera Screen, takes a picture then returns. You can't put extra buttons on the screen in this way.
To get a video feed and manage the capture yourself, you will need to implement a lot of platform specific things.
Android
https://developer.xamarin.com/recipes/android/media/video/record_video/
iOS (Look at the AV samples)
https://developer.xamarin.com/samples/ios/Media/

Suggestions for activating front facing camera within Safari on iPad

I'm trying to create a kiosk-style customer registration process with an iPad, but doing it an an entirely web-based environment, rather than a purpose-built app.
During the registration process, the user is required to take a photo of their own face using the iPad camera.
I have been experimenting with the HTML5 Media Capture tools, but unfortunately, this always defaults to the iPad's back camera, rather than the front-facing camera. This means the user must then switch to the front facing camera, which isn't ideal as part of the user experience.
I can't see any way of forcing the iPad to default to the front camera in the device settings, and my searches haven't revealed any way of doing this with HTML only.
I've had a look at apps such as "Picup", but they don't seem to offer much more than is already achievable with HTML5 with regard to camera control.
Can anyone offer any suggestions? Does anyone know of any other iOS apps (like Picup) that might give the ability to activate the camera for uploading images in a form, but can be configured to use the front facing camera as default?
Or am I going to have to go down the path of creating a purpose-built app to get the control I need?
Any suggestions would be welcomed, and thanks in advance for your reply.
The Media API currently doesn't allow you to distinguish between front and rear cameras, so there is currently no method (that I know of) that allows you to select the front camera.
However I would suggest perhaps building your app the way you are, but using PhoneGap Build (which can package your app into an iOS app) and the Camera Plugin (http://docs.phonegap.com/en/2.6.0/cordova_camera_camera.md.html) which does allow you to specify the front camera (see options->cameraDirection) apparently (I haven't tried it myself).

Is this within the scope of a PhoneGap plugin?

I've tried to figure out if the functionality I need is possible with a PhoneGap plugin and haven't found a clear answer.
I'd just like some clarification as far as if this is within the scope of a plugin.
The functionality would be...
Within the webview a user triggers a button.
A camera preview screen of custom size, not full
screen, pops up over the webview.
The preview shows view from front facing camera except it's
cropped to the custom size.
A video automatically starts recording for a set amount of time,
then stops.
Once the video stops recording the preview screen goes away and the
local path to the movie file is returned to a callback.
Is this all reasonable functionality for a phonegap plugin?
Yes, you can definitely implement that functionality as a Phonegap plugin.
Possible steps that you can take are the following:
- Write the native code of the functionality first (Note: You can call and start activities through Phonegap plugin).
- Create a layout (Maybe, something that will overlay the webview with transparent background).
- Use the File API of Phonegap to access the movie file you just captured.

blackberry camera Application

I am implementing camera application using then example comes with blackberry plugin for eclipse named "CameraDemo" the problem is that when the screen loses focus It does not display the camera view istead of it shows like this
has anybody faced such problem whats the solution?
This way of taking picture (using the Player and VideoControl.getSnapshot()) does not work nice on all BB models. I'd even say it works nice only on a narrow set of BB models. So if you are going to use your app on a wide range of BB models, then this is not the right way to go.
Instead to take a picture use a built-in Camera app. Here is a starting point on how to do that.
Basically you invoke the built-in Camera app and listen for the file-system changes to detect a new image file path. Then you need to close the built-in Camera app somehow - it's possible to do that by simulating two 'Esc' button presses.
Yes, this sounds a bit hacky/over-complicated, but that's how BB engeneers arranged that for us. :) BTW, this is actually not so bad if compare with Android where different device manufactorers violate the common rules and implement the Camera app in their specific way so you are not able to write the code once covering all Androids.

Custom Camera view for UIImagePickerController that uses the base camera UI?

I'm trying to build a slightly modified UIImagePickerController with a UIImagePickerControllerSourceTypeCamera source-type. I would like to retain the default controls of Flash, Front/Read facing camera, and Photo Capture but replace the default cancel button with a smaller cancel button & a button to launch the user's device photo-library. Is there a way to do this without having to recreate the entire camera UI? If there's not a way, is there a 3rd party library (commercial or open-source) that allows for this? Thanks.
I can tell you that there is no way to modify the standard camera UI unless you recreate it entirely, but I don't know if there is any library to help you with this. I had to create a new UI and I didn't find it difficult. You can easily bind the UI elements with the functionalities you need. This might get you started.

Resources