Capturing videos with Cordova (PhoneGap) in half screen. - ios

I'm building a Cordova app with a video capturing feature. Focusing on iOS devices. I'm currently using the videoCapture plugin. I would like the ability to set the size of the capturing screen to just half the screen (to be able to show content on the phones screen at the same time as the video is captured).
I have been looking in to some Cordova plugins such as SnapsCamera and it seems to do sort of what I need but it lacks documentation and dosen't look well supported.
Any recommendations about other plugins or ways to go from here?
(My knowledge in objective C /Swift is very limited)

Related

Prevent screenshots and video record of screen for iOS Ionic app

I am developing an Ionic app for Android and iOS.
We are trying to prevent users from taking screenshots of the app, whether the method is blurring the screen or otherwise. We also want to prevent video screen recording.
We are building using Ionic, so the method must work with Ionic.
We have been able to get this to work for Android, but not iOS.
Anyone know of any Ionic-friendly methods to prevent screen shots while inside an app?

macOS 10.12 and iOS 10 - Obscuring portions of a screenshot?

On both macOS and iOS, when a user takes a screenshot of a video file playing within iTunes / the TV app, the screenshot is obscured and the media player layer appears as a solid black box in the screenshot as shown here:
iOS:
macOS:
I have read in other posts that it is not possible to obscure/prevent the user from taking a screenshot on iOS devices; however, as shown in these images, Apple appears to be using some method to obscure the content of the video in the screenshot file.
In these cases, how is the app managing to obscure the video content within the screenshot?
For MacOS it's pretty easy... set the window level to be above a certain point, for example in one of my apps where I disallow screenshots, I do this (in Objective-C):
windowLevel = CGShieldingWindowLevel();
[myWindowOutlet setLevel: windowLevel];
For iOS it's trickier. You can tell when a screenshot has been taken, but there's no official API to stop it from happening. One person on Apple's developer forums suggested to call "touchesCancelled"

Card.IO camera flash button for iOS

I noticed on the card.io website there is a flash button during the scanning process. How do I activate that? I looked at the header files and did not see a property for that.
This is for the iOS SDK.
Thanks.
#CLDev, thanks for asking!
Older versions of the card.io SDK for iOS did indeed include that flash button in the interface. But in the current version, we have taken a new approach.
Now, in a low-light situation the flash will automatically come on, and its brightness will be automatically adjusted by the SDK. We have run lots of experiments, and we think that we've arrived at settings that produce the best results for most cards in most lighting situations.
(Some older devices don't support the APIs for adjusting flash brightness. On those older devices, the SDK will instead display the flash button, as in the past.)

iPad 2 and 4 not mirroring/outputting video via HDMI to full screen

I am encountering an issue which I believe is caused, as a result of upgrading to iOS version 6 on my iPad2 and iPad4. I have searched the support boards but have not found a solution to this issue. The issue involves mirroring the iPad on a TV using the official HDMI adaptor as shown here: http://store.apple.com/uk/product/MD098ZM/A/apple-digital-av-adapter
When playing a video on the device using the native MPMoviePlayerController, via the adapter, the result on the TV is not full screen and, instead, it is provided with black borders around the video (these bars are an ever present even when viewing the app's non-video parts or the standard apple menus which I believe was always the case but, previously, the video played full screen via the cable).
I have tested apps which I have developed which contain video playback, as well as a number of leading apps on the marketplace, and all experience the same issue when playing video mirrored on the device with iOS6 and TV at the same time. The only app I found that was able to play the video full screen on TV is the BBC iPlayer, but this seems to switch of mirroring off temporarily when the video is played full screen on TV.
I believe that, when on iOS 5, it was possible to mirror the video playback on device and TV simultaneously, and at full screen, without the black bars on the TV.
Can anyone here please confirm if this issue is related to iOS 6 and be able to kindly point me in the right direction to resolve this issue in the iOS apps that I have developed?
Are you sure that this is not happening because of your external screen's overscan settings?
Check this thread iOS screen mirroring shows overscan borders on selected apps
And here is some information on overscan & underscan from Apple
http://support.apple.com/kb/HT5841

Why does navigator.device.capture.captureVideo sometimes show the Picture Camera instead of the video camera?

Sometimes when calling navigator.device.capture.captureVideo() in my iOS PhoneGap application the picture camera comes up instead of the video camera. Any idea why this might be happening?
It seems like it may be a memory issue as it does happen after a TokBox WebRTC chat session quite frequently, but we have also experienced it at other times as well.
Using iOS 5 & 6, PhoneGap 2.1 and the OpenTok PhoneGap plugin.
When OpenTok runs, it opens up a view to capture video in order to stream it, putting the camera in video mode. When you then call navigator.device.capture.captureVideo, phonegap could be flipping the camera in their sdk but I dont know for sure.
Either way, this should be resolved with the latest OpenTok SDK and Cordova framework.

Resources