How to get Liveview orientation using Sony Camera API - ios

I am currently trying to implement the Sony Camera API within a photo capture app.
I wondered if it is possible to detect the orientation of the Sony Camera (I am using the DSC QX10). This means, I'd like to adjust the displayed Liveview on the screen of my iPhone depending on if the Sony camera is held in portait or landscape mode? (Currently I only achieved to implement the portrait view. In case I rotate the camera to landscape, the Liveview image on the iPhone is distorted.)
I hope my question is clear enough.
Best regards,
Josef

Please download latest Camera Remote API SDK beta(v1.50 or later) and check out the "liveviewOrientation" parameter in getEvent response.
Best Regards, Prem, Member of Developer World team at Sony.

Related

Ask permission to unlock screen orientation in Swift

I'm working on a photo capturing application.
My app only supports portrait mode and I have to rotate landscape images to rotate them for the portrait mode. For example I want to rotate the photo 90 degrees right if it was captured in landscapeRight.
But if user device is in "Lock screen orientation" mode, I can't get the correct device orientation value with UIDevice.current.orientation if user is trying to take a landscape positioned photo. It always returns "portrait" value of course due to the "lock screen oritentation".
I want to ask permission to user for unlocking screen orientation with like "This application wants to unlock your screen orientation" message. Is it possible to add my info.plist to add a permission request for unlocking screen orientation? And if yes, which permission do I have to add in my info.plist?
Thanks in advance.
I concur you can't change the orientation properties. All those properties (in your project page) do is to enable state variables and notifications from which you can animate the orientation of your UI. So perhaps a hacky solution would be to look at using gyroscope APIs, and to make a small algorithm based on that to detect device rotation. It would essentially come down to building logic similar to a Leveling App. https://developer.apple.com/documentation/coremotion/cmmotionmanager

iPhone camera landscape orientation issue

I have scenario in which the camera is to be forced to be in landscape when ever you want click . I tried various things but i am not able to make it landscape . In one forum i even read that doing so may lead to app rejection . Is it so? if not can someone give me the solution for the same ?
Which model of the iphone are you using? Do you by chance have the rotation lock enabled? Is this a third party app or the official iphone camera app? sometimes if you use a third party app, they don't always work correctly with rotation settings.
Hey i found one solution for the same through which we can give an impression to user that camera is presented in landscape mode and user will take image in landscape . We need to add a custom view (a bar giving an impression that its a landscape view) on the camera with button having click functionality hiding the default controllers of camera . See attached screenshot . Output of solution i found

Opentok screen capture issue

I am using opentok screen share in my app, I am using the TBscreenCapture method provided by the opentok, the app is working fine in iPhone, but in the iPad the screen capture is returning the view with misplaced frame, the image is like instead of starting from 0,0 it is starting from -100,-100 where 100 is representational figure, so I am not able to see the upper part of the screen transmitted.
This is an iOS camera engine library that allows easy integration of special capture features and camera customization
https://github.com/piemonte/PBJVision

is Second Screen capable of 16:9 via AirPlay over AppleTV in iOS 5.0.1

i think about extending support within one of my apps to handle a second screen via AppleTV.
The question is:
If i just mirror my App, the nice 46" LCD TV shows only a 4:3 Letterbox Image of my App. Is it possible to use the full 16:9 ratio if i change my app to render a different screen for Apple TV / AirPlay?
Absolutely. In iOS 5, a mirrored AirPlay screen can be used as a secondary UIScreen, which can have content different from what is on the device screen. That's what you want to do.
You can see how to do this here:
https://github.com/quellish/AirplayDemo
Your device screen is mirrored until you start using that secondary UIScreen, and you can remove the window you attach the to the UIScreen and go back to mirroring. This lets you control when you're putting custom content on there, and when you're just mirroring.
Absolutely - see Real Racing HD 2 for a great example!

UIImagePickerController With Camera Option in landscape mode in iphone SDK

I'm going to use UIImagePickerController with source as a camera. by default when i'm capturing the image m able to take the picture in portrait mode. here the problem is that i'm not able to display the same view in landscape mode.
Is there any other way to open the camera in Landscape mode?
Thanks in advance.
First of all there is no way to open camera in Landscape mode So we have to customize views as per our need.
You have to add rotation transformation to picture which will match to landscape view. You can hard code it as ,
Blockquote
CGAffineTransformRotate(CGAffineTransformIdentity, 117.81)"
Blockquote

Resources