I'm building a camera related application on Windows 8, it previews the camera input on the screen. I'm trying to handle the case that when the user revoke the camera permission ,still the camera's light stay on, it indicates that the camera resource hasn't been fully release.
Please provide a way to dismiss the camera's light when user revokes the permission.
Related
We are developing a unique streaming app for special content. Due to the content rights and the release window, we can't allow users to screen cast from their phone or tablet to a TV. So, we would appreciate your guidance and support on how we can fully disable casting, mirroring, etc. in Android.
We've tried a few things and are able to disable screenshots and digital recording e.g. loom. When we screen record, the sounds is recorded but the image is black. So, we've been able to successfully disable screenshots and screen recordings. However, we're unable to stop screen mirror, smart view, airplay and casting.
I'm using expo screen orientation package to handle my apps screen orientations but it does not take into consideration if the user have turned auto rotate on/off in the device settings.
I tried the react-native-orientation-locker package as well but I can't get that to work at all on my app for some reason.
Is there any way of telling what the user preference is regarding the auto rotate? I can't find any examples of it anywhere. Surely others needed this info as well.
I'm working with a Sony DSC-QX100 camera via Sony's Remote Camera api, specifically for use on a Windows 8 tablet (basically replacing the built-in camera of the tablet with this unit). I'm able to consume the camera's LiveView (streaming) and LiveShot (take a picture and retrieve the image from url) features triggered from my application.
My question is whether or not the Remote Camera api exposes any functionality to access pictures stored on the camera's SD card (when it is available). Bottom line, my user may choose to take the picture directly with the camera unit (manually, instead of remotely via my application on the tablet) and I've not yet found the method by which to retrieve this picture from the camera (other than transferring the SD card from camera to pc). Anyone tried this or seen something in the API documentation that I'm missing?
Current Camera Remote API does not provide direct access to SD card.
All available APIs are documented.
I'm following the code here to capture an image with the Google Glass camera.
https://developers.google.com/glass/develop/gdk/media-camera/camera#capturing_images_or_video
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 1);
Everything is working fine, except that the camera activity requires the user to "tap to accept". Is it possible to just take the photo after a second or so?
This is how the built-in camera app works, I just say "ok glass, take a picture" and it takes a picture without requiring any additional confirmation. The camera in my app is already being activated by the user with other voice/taps in the interface so this second confirmation tap is undesirable.
Instead of opening the Google Glass camera app, you could take the picture yourself: http://developer.android.com/training/camera/cameradirect.html
This is even mentioned in the GDK reference:
Building your own logic with the Android Camera API. Follow these guidelines if you are using this method:
Take a picture on a camera button click and a video on a long click, just like Glass does.
Indicate to the user whether a picture was taken or a video was recorded.
Keep the screen on during capture.
You can use Cuxtom Cam library to perform that task that you want.
I wrote an application that sets some camera values (duration, quality, etc) using UIImagePickerController and it works fine. However, on an iPhone 4, I start with the front camera and if the user switches to the rear camera, the quality settings are lost. Is there a way that I can test if the user switches between the front and rear camera?
By using
if (imagePicker.cameraDevice=UIImagePickerControllerCameraDeviceFront)
it will tell me if the camera is set to the front camera but if the user switches cameras using the screen switcher, it won't return the camera value.
Any help here would be greatly appreciated.
You probably need AVCaptureDevice notifications:
AVCaptureDeviceWasDisconnectedNotification
AVCaptureDeviceWasConnectedNotification
Observe them and react accordingly.