{ "id": "136317", "key": "TIMOB-17662", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-01-23T19:28:04.000+0000", "created": "2014-09-09T20:13:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_media", "usability" ], "versions": [], "issuelinks": [ { "id": "40955", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "136063", "key": "TIMOB-17609", "fields": { "summary": "iOS8: Image Capture Rotated has black bars upon rotation on iPad device", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41435", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "136957", "key": "TIMOB-17735", "fields": { "summary": "iOS8: Launching Image Capture when device is flat on the desk and in Landscape mode results in the UI being rotated and black bars present", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41195", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "136632", "key": "TIMOB-17698", "fields": { "summary": "iOS8: iPad Image Capture Black Bars if rotated immediately when clicking launch Image capture", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41216", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "136689", "key": "TIMOB-17712", "fields": { "summary": "iOS8: if the user rotates the device when exiting image capture the orientation of the device is in the opposite orientation it should be in", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41013", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "136450", "key": "TIDOC-1874", "fields": { "summary": "iOS: Document autorotate property of showCamera", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-26T17:36:13.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": "h6.Feature Request\r\nFeature Request to do not allow the CameraPreview to rotate. Add the following method inside @implementation TiImagePickerController\r\n\r\n{code}\r\n- (BOOL)shouldAutorotate\r\n{\r\n return NO;\r\n}\r\n{code}\r\n\r\n- https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/MediaModule.m#L65\r\n\r\nh6.Sample code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar button = Ti.UI.createButton({\r\n title: 'Open',\r\n top: 50,\r\n left: 10,\r\n right: 10,\r\n height: 50\r\n});\r\n \r\nwin.add(button);\r\n \r\nwin.open();\r\n \r\nbutton.addEventListener('click', function() {\r\n Ti.API.info('click');\r\n Ti.Media.showCamera({\r\n success: success,\r\n error: error,\r\n saveToPhotoGallery: false,\r\n allowEditing: false,\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n showControls: true,\r\n autohide: false\r\n });\r\n \r\n function success(e) {\r\n Ti.API.info('Success');\r\n }\r\n \r\n function error(e) {\r\n Ti.API.info('Error');\r\n }\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS8: Feature Request to do not allow the CameraPreview to rotate", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Xcode6 GM\r\niOS 8.0", "closedSprints": [ { "id": 199, "state": "closed", "name": "2014 Sprint 18 SDK", "startDate": "2014-09-02T22:56:57.421Z", "endDate": "2014-09-13T00:00:00.000Z", "completeDate": "2014-09-15T20:08:19.146Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "322617", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FYI [~aleard].", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-09T20:14:29.000+0000", "updated": "2014-09-09T20:14:29.000+0000" }, { "id": "322619", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think we want this to be added as a boolean property so the developer can set the property to yes or no at their discretion.\r\n\r\n{code}\r\nTi.Media.showCamera({\r\n autoRotate:false\r\n});\r\n{code}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-09T20:21:56.000+0000", "updated": "2014-09-09T20:21:56.000+0000" }, { "id": "323108", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-11T17:59:19.000+0000", "updated": "2015-01-23T19:27:51.000+0000" }, { "id": "323160", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs merged", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-11T21:10:17.000+0000", "updated": "2014-09-11T21:10:17.000+0000" }, { "id": "323456", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested environment\r\nMac osx 10.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201409112242\r\nTitanium SDK, build: 3.4.0.v20140912120914\r\nacs@1.0.16\r\nalloy 1.5.0-rc\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium 3.4.0-rc2\r\ntitanium-code-processor@1.1.1\r\nXcode6\r\nDevice: iPad Air iOS8\r\n\r\nThe camera opens in the current orientation but does not once it is open\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T22:38:28.000+0000", "updated": "2014-09-12T22:38:28.000+0000" }, { "id": "324102", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "Using the iOS 8 GM, iOS 8 GM SDK, and the 3.4.0.v20140916131632 TiSDK if you leave the iPad flat on the desk and click launch camera, it shows rotated sideways with the black bars present. \r\nSteps to reproduce:\r\n1. Build app with iOS8 SDK & TiSDK 3.4.0.v20140916131632, install on iOS 8 device. \r\n2. Pick up the device and rotate it to landscape orientation (Home button on Right) <- This is key, it seems in portrait this issue does not occur \r\n3. Lay the device flat on the desk \r\n4. Launch the app, then launch image capture by clicking the image capture button. \r\n5. Notice that the image shown is sideways and there are black bars present. If this does not occur close the image capture and repeat steps 3-4 leaving the device flat on the desk. \r\n6. Close the camera viewfinder \r\n7. Pick the ipad up off your desk \r\n8. Click the image capture button. \r\n9. Notice that the viewfinder appears correctly. It should appear like this when its flat on the desk. ", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-09-16T23:20:35.000+0000", "updated": "2014-09-16T23:20:35.000+0000" }, { "id": "339865", "author": { "name": "itsbrnrd", "key": "itsbrnrd", "displayName": "Mathieu Bernard", "active": true, "timeZone": "Europe/Berlin" }, "body": "On an iPhone 5 with *iOS 8.1.1* using the *3.4.0.GA* Titanium SDK and the following code :\r\n\r\n{code:title=app.js}\r\nTitanium.Media.showCamera({\r\n\tsuccess: function(event) {\r\n\t\tTi.API.info('PHOTO');\r\n\t},\r\n\tcancel: function() {\r\n\t\tTi.API.info('CANCEL');\r\n\t},\r\n\terror: function() {\r\n\t\tTi.API.error('ERROR');\r\n\t},\r\n\tautorotate: false,\r\n\tmediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO]\r\n});\r\n{code}\r\n\r\nIt seems that the camera still rotates because the icons (flash and front/rear camera) rotate.\r\nWhen debugging the objective-c code in XCode, the {{shouldAutoRotate}} method from {{TiImagePickerController}} is called and the autorotate property value is *NO*.\r\n\r\nIs there anything wrong with the code or is the feature correctly working ?", "updateAuthor": { "name": "itsbrnrd", "key": "itsbrnrd", "displayName": "Mathieu Bernard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-20T09:37:33.000+0000", "updated": "2015-01-20T09:37:33.000+0000" }, { "id": "340457", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi [~itsbrnrd], The behavior you are seeing is expected. Apple does not allow us to control the icons rotating. ", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-23T19:26:45.000+0000", "updated": "2015-01-23T19:26:45.000+0000" }, { "id": "340458", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to fix typo", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-23T19:27:20.000+0000", "updated": "2015-01-23T19:27:20.000+0000" }, { "id": "340546", "author": { "name": "itsbrnrd", "key": "itsbrnrd", "displayName": "Mathieu Bernard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi [~jalter] and thanks for your quick answer.\r\nI understand that the icons cannot be controlled by the {{autorotate}} property. However, I don't see any difference in the code I wrote above with the {{autorotate}} property set to {{true}} or {{false}}.\r\n\r\nWhat I'm trying to achieve is to force the camera in portait (only) and I thought this property would help me do that. Am I wrong ?", "updateAuthor": { "name": "itsbrnrd", "key": "itsbrnrd", "displayName": "Mathieu Bernard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-26T09:33:36.000+0000", "updated": "2015-01-26T09:33:36.000+0000" }, { "id": "340567", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~itsbrnrd] This property is for iPad apps only. Changing this on an iphone app will have no affect. \r\nSee the documentation here: http://docs.appcelerator.com/titanium/latest/#!/api/CameraOptionsType-property-autorotate", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-26T17:36:13.000+0000", "updated": "2015-01-26T17:36:13.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }