{ "id": "64962", "key": "TIMOB-3848", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-06-03T11:41:20.000+0000", "created": "2011-04-30T19:22:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11243", "name": "Release 1.6.0 M10", "archived": true, "released": true, "releaseDate": "2011-02-21" } ], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:10:07.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Would like to be able to control the rotation of the camera overlay as you can with a window. Example below:\n\n{code:javascript}\nTitanium.UI.setBackgroundColor('#000');\n\nvar win1 = Titanium.UI.createWindow({ \n title:'Tab 1',\n backgroundColor:'#fff',\n\torientationModes: [ Titanium.UI.PORTRAIT ]\n});\n\nvar camera_button = Titanium.UI.createButton ({\n\ttitle:'Camera',\n\theight:60,\n\tbottom: 10,\n\twidth:160\n});\ncamera_button.addEventListener ('click', function(e) {\t\n\t\n\tTitanium.Media.showCamera ({\n\t\torientationModes: [ Titanium.UI.PORTRAIT ],\n\t\tsaveToPhotoGallery: true,\n\t\tallowEditing: true,\n\t\t\n\t\tsuccess: function(event){\n\t\t\tvar a = Titanium.UI.createAlertDialog({\n\t\t\t\ttitle: 'You did it!'\n\t\t\t});\n\t\t\ta.show();\n\t\t},\n\t\t\n\t\terror: function(error){\n\t\t\tvar a = Titanium.UI.createAlertDialog({\n\t\t\t\ttitle: 'Uh Oh...'\n\t\t\t});\n\t\t\tif (error.code == Titanium.Media.NO_CAMERA || error.code == Titanium.Media.NO_VIDEO) {\n\t\t\t\ta.setMessage('Sorry, this device does not have a camera. You knew that, right?');\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta.setMessage('Unexpected error: ' + error.code);\n\t\t\t}\n\t\t\ta.show();\n\t\t}\n\t\t\t\t\n\t});\n\n});\n\nwin1.add(camera_button);\nwin1.open();\n{code}\n\nh3. Associated Helpdesk Ticket\nhttp://appc.me/c/APP-939465", "attachment": [], "flagged": false, "summary": "iOS: iPad 2 camera overlay respect orientationModes", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "410929", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:10:07.000+0000", "updated": "2017-03-09T23:10:07.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }