{ "id": "86635", "key": "TIMOB-7701", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-02-17T16:42:44.000+0000", "created": "2012-02-16T17:37:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-ios021312" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:53:28.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": "after CAMERA_BACK is added to the switchCamera method, then CAMERA_FRONT is added to the swithCamera method,when you launch the app the back camera is activated instead of front camera\r\n\r\nsteps to reproduce:\r\n1. Launch code in app.js:\r\n{code:title=app.js}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor:'#000'\r\n});\r\n\r\n// create button, register the modified click callback, add button to window\r\nfunction addButton(title, clickCallback)\r\n{\r\n\tvar button = Ti.UI.createButton({title:title, width:'300', height:'50'});\r\n\t\r\n\tbutton.addEventListener('click', function() {\r\n\t\tTi.Media.showCamera({mediaType:Ti.Media.MEDIA_TYPE_PHOTO});\r\n\t\tclickCallback();\r\n\t\tTi.Media.vibrate();\r\n\t\t});\r\n\t\t\r\n\twindow.add(button);\r\n}\r\n\r\n// camera with front specified after switching to back\r\n// checks if switch function actually works, opposed to it being the default\r\naddButton('Front Camera Test 2', function(){\r\n\tTi.Media.switchCamera(Ti.Media.CAMERA_BACK);\r\n\tTi.Media.switchCamera(Ti.Media.CAMERA_FRONT);\r\n});\r\n\r\nwindow.open();\r\n{code}\r\n\r\n2. tap on front camera test2\r\nexpected result : front camera should be active\r\nActual result : Back camera is active\r\n\r\nNote: it works as expected in 1.8.1", "attachment": [], "flagged": false, "summary": "IOS : camera- does not switch between front and back cameras correctly", "creator": { "name": "sshylaja", "key": "sshylaja", "displayName": "Sitara Shylaja", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sshylaja", "key": "sshylaja", "displayName": "Sitara Shylaja", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 1.8.2.v20120214163156\r\nDevice Details:ipad2 version 5.0.1\r\nTitanium Studio version: 1.0.8.201201262211", "comment": { "comments": [ { "id": "410858", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:53:28.000+0000", "updated": "2017-03-09T22:53:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }