{ "id": "88363", "key": "TIMOB-8151", "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": [ { "id": "13503", "description": "Sprint 2012-14 Core", "name": "Sprint 2012-14 API", "archived": true, "released": true, "releaseDate": "2012-07-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-05T15:08:39.000+0000", "created": "2012-03-21T09:57:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "module_media", "qe-manualtest", "qe-port" ], "versions": [ { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "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": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-08T20:45:55.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem description\r\nCamera view is stretched and badly displayed when using overlays\r\n\r\nh2. Steps to reproduce\r\nCode sample taken from bug TIMOB-4745\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.setBackgroundColor('#ffffff');\r\n\r\nvar homeWindow =\tTitanium.UI.createWindow\r\n({\r\n\r\n});\r\nhomeWindow.open();\r\n\r\nvar displayVoucherOverlayView \t= \tTi.UI.createView\r\n({\r\n\ttop:\t\t0,\r\n\tbottom:\t\t0,\r\n\tleft:\t\t0,\r\n\tright:\t\t0,\r\n\topacity:\t0.75\r\n});\r\nvar setAButton\t=\tTi.UI.createButton\r\n({\r\n\ttop:\t\t100,\r\n\tleft:\t\t30,\r\n\tright:\t\t30,\r\n\theight:\t\t75,\r\n\ttitle:\t\t\"HELLO\"\r\n});\r\ndisplayVoucherOverlayView.add(setAButton);\r\n\r\nsetAButton.addEventListener('click', function() { alert(\"I HAVE BEEN PRESSED\");} );\r\n\r\nvar navigationBar = \tTi.UI.createView\r\n({\r\n\tbottom: \t\t\t0,\r\n\theight: \t\t\t50,\r\n\tright:\t\t\t\t0,\r\n\tbackgroundColor: \t\"#000000\",\r\n\topacity:\t\t\t0.75\r\n});\r\nvar navBarTestBtn \t= \tTi.UI.createView\r\n({\r\n\tleft:\t\t\t\t5,\r\n\twidth: \t\t\t\t90,\r\n\theight: \t\t\t50,\r\n\ttop: \t\t\t\t0,\r\n\tbackgroundColor: \t\"#000000\",\r\n\tborderColor: \t\t\"#FFFFFF\",\r\n\tborderWidth: \t\t2\r\n});\r\nvar navBarTestBtnText \t= \tTi.UI.createLabel\r\n({\r\n\twidth: \t\t\t\t90,\r\n\ttext: \t\t\t\t\"TEST\",\r\n\tcolor: \t\t\t\t\"#FFFFFF\",\r\n\ttextAlign: \t\t\t'center',\r\n\tfont: \t\t\t\t{fontSize: \t\t10}\r\n});\r\nnavBarTestBtn.add(navBarTestBtnText);\r\nnavigationBar.add(navBarTestBtn);\r\n\r\nnavBarTestBtn.addEventListener('click', function() {alert(\"IM A VIEW WITH A LISTENER\");} );\r\n\r\ndisplayVoucherOverlayView.add(navigationBar);\r\n\r\nvar cameraTransform \t= \tTi.UI.create2DMatrix();\r\ncameraTransform \t\t= \tcameraTransform.scale(2);\r\n\r\nTi.Media.showCamera\r\n({\r\n success:\t\t\tfunction(event) {},\r\n cancel:\t\t\t\tfunction() {},\r\n error:\t\t\t\tfunction(error) \r\n\t{\r\n if (error.code == Ti.Media.NO_CAMERA) \r\n\t\t{\r\n\t\t\talert(\"NO CAMERA\");\r\n } \r\n\t\telse \r\n\t\t{\r\n\t\t\talert(\"CAMERA ERROR\");\r\n }\r\n },\r\n\tmediaTypes:\t\t\t[Ti.Media.MEDIA_TYPE_VIDEO,Ti.Media.MEDIA_TYPE_PHOTO],\r\n showControls:\t\tfalse,\r\n autohide:\t\t\tfalse,\r\n transform:\t\t\tcameraTransform,\r\n overlay:\t\t\tdisplayVoucherOverlayView\r\n});\r\n{code}\r\n\r\nCamera image appears stretched and blurry. Image taken looks fine.\r\n\r\nh2. Additional info\r\nIND ticket associated: http://support-admin.appcelerator.com/display/APP-344639\r\n", "attachment": [], "flagged": false, "summary": "Android: camera image is stretched when using an overlay", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "only reproducible on Android OS (tested on Samsung Galaxy S 2)\r\nTiSDK all versions", "comment": { "comments": [ { "id": "192851", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sent [PR #2081|https://github.com/appcelerator/titanium_mobile/pull/2081] to address the issue.\r\nDisable a bit of code which was overriding the camera preview size resulting in the poor quality image preview.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T16:32:39.000+0000", "updated": "2012-04-26T16:32:39.000+0000" }, { "id": "199948", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on:\r\nTitanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice: Samsung Galaxy tab (3.2)\r\n\r\nCamera view is still stretched.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T15:28:38.000+0000", "updated": "2012-06-23T15:28:38.000+0000" }, { "id": "201451", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created [PR #2507|https://github.com/appcelerator/titanium_mobile/pull/2507] to resolve issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-03T15:47:40.000+0000", "updated": "2012-07-03T15:47:40.000+0000" }, { "id": "201694", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "tested on HTC Desire (2.2)\r\nHTC Sensation (2.3)\r\nAsus Transformer TF101 (3.1)\r\nMotorola Xoom (4.0.3)\r\nSamsung Galaxy Nexus (4.1)", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-05T15:08:22.000+0000", "updated": "2012-07-05T15:08:22.000+0000" }, { "id": "213831", "author": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with \r\nmobile sdk-2.2.0.v20120810080115\r\nTitanium Studio, build: 2.1.1.201207271312\r\nDevice:\r\nGalaxy S III Android version 4.0.4\r\n", "updateAuthor": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T12:55:29.000+0000", "updated": "2012-08-10T12:55:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }