[TIMOB-8555] iOS: Camera needs to support overlay for Landscape and Portrait (right now, you can only provide one overlay).
GitHub Issue | n/a |
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-04-17T13:39:47.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | Release 2.1.0, Sprint 2012-08 |
Components | iOS |
Labels | api |
Reporter | Mauro Parra-Miranda |
Assignee | Sabil Rahim |
Created | 2012-04-05T12:40:14.000+0000 |
Updated | 2012-06-12T17:07:52.000+0000 |
Description
Problem Description
As there is no way to limit the iPad2/3 camera from automatically changing the orientation of the live camera if there is an orientation change, I need to find a way to dynamically change the overlay that we are showing over the live camera view.
I have added an orientationchange event handler to allow me to try to reset the overlay view width/height but any changes that I make to the overlay view width/height (changing from landscape to portrait and vica versa) do not appear to be picked up and applied to the overlay - the overlay remains showing with the original width and height in the live camera view.
Actual Results
The overlay won't change
Expected results
being able to provide the right overlay for landscape or portrait
Extra info
One way to accomplish this would be to provide a secondary overview for the landscape or portrait orientation
Comments
JSON Source
How exactly does one change to a secondary landscape view after Ti.Media.ShowCamera has opened? This is the problem I am battling - once the live camera view is showing with the overlay view that I passed in as a parameter to Ti.Media.ShowCamera, I can't seem to make changes to the overlay view or change the overlay to a different view formatted for landscape. This issue is only when using the camera module on an iPad2/3 where the camera rotates the live camera view and the overlay view on orientation change.
This can be achieved by having all controls (for both landscape and portrait) inside the same overlay.Hide and show the controls by listening for change in Orientation. You can find an example for this in [here](https://gist.github.com/2408765). So going to mark this ticket as invalid.