{ "id": "160466", "key": "TIMOB-23427", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-06-28T12:21:02.000+0000", "created": "2016-05-24T17:15:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.4.0" ], "versions": [ { "id": "17993", "description": "Release 5.2.2", "name": "Release 5.2.2", "archived": false, "released": true, "releaseDate": "2016-04-05" } ], "issuelinks": [ { "id": "52057", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "161236", "key": "TIMOB-23546", "fields": { "summary": "Windows: Tap-to-focus for Camera", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "51981", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "159772", "key": "TIMOB-23262", "fields": { "summary": "Windows: Opening camera launches a view overlay instead of a full screen window where the user can take a photo", "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 } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-05T16:48: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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h6.Issue Description\r\n\r\nTrying to check the camera feature in Windows Platform but the default camera controls are not shown an also front camera is opened. We are unable to capture a picture. Even tried placing the overlay didn't help. We are using titanium SDK 5.2.2.GA. Please find the attached screen shot and code. \r\n\r\n\r\nh6.Test Case\r\n{code}\r\nvar win = Ti.UI.createWindow({ \r\nlayout : 'vertical', \r\nbackgroundColor : 'white' \r\n}); \r\n\r\nvar button = Ti.UI.createButton({ \r\ntitle : 'take picture', \r\ncolor : 'black' \r\n}); \r\nbutton.addEventListener('click', function() { \r\nTi.Media.showCamera({ \r\n'cancel' : function() { \r\nTi.API.info('cancel'); \r\n}, \r\n'error' : function() { \r\nTi.API.info('error'); \r\n}, \r\n'success' : function(e) { \r\nTi.API.info('success: size=' + e.media.length); \r\nimageView.image = e.media; \r\n} \r\n}); \r\n}); \r\nwin.add(button); \r\n\r\nvar imageView = Ti.UI.createImageView(); \r\nwin.add(imageView); \r\n\r\n// setTimeout(function() { \r\n// Ti.Media.hideCamera(); \r\n// }, 3000); \r\n\r\nwin.open(); \r\n{code}\r\n", "attachment": [ { "id": "59611", "filename": "SE-SS 2.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-22T03:20:01.000+0000", "size": 180399, "mimeType": "image/png" }, { "id": "59399", "filename": "wp_ss_20160422_0002.jpg", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-24T17:15:22.000+0000", "size": 65518, "mimeType": "image/jpeg" }, { "id": "59582", "filename": "wp_ss_20160615_0001[1].png", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-15T20:36:58.000+0000", "size": 1408552, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Camera controls are not showing", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Device: Microsoft Windows 8.1 Enterprise,Emulator: Emulator 8.1 WVGA 4 inch 512MB \r\nNode.js Version = 0.12.7 \r\nnpm Version = 2.11.3 \r\nSDK Version = 5.4.0.v20160404231726,5.2.2.GA \r\nAppcelerator Command-Line Interface, version 5.2.0 ", "closedSprints": [ { "id": 649, "state": "closed", "name": "2016 Sprint 13 SDK", "startDate": "2016-06-18T00:25:17.303Z", "endDate": "2016-07-02T00:25:00.000Z", "completeDate": "2016-07-04T04:25:16.889Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "386739", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI am able to to reproduce the issue with given code. The camera opens for {{Ti.Media.showCamera}} but camera control is not showing. Its is not possible to take picture from there or go back to app. Windows default camera app works fine on the same device. I added following capabilities which *did not* solve the issue.\r\n{code}\r\n \r\n \t \r\n \t\t\r\n \t\t\r\n \t\t\r\n \t\t\r\n \t \r\n \r\n{code}\r\n\r\n*Environment*:\r\n\r\n*OS :* Microsoft Windows 8.1 Enterprise N\r\n*Device info:* Microsoft Lumia 640 (Windows Phone 8.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.4.0.v20160429102159\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-25T05:49:30.000+0000", "updated": "2016-05-25T05:51:26.000+0000" }, { "id": "387911", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by TIMOB-23262\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green', layout:'vertical' }),\r\n openButton = Ti.UI.createButton({ title: 'OPEN CAMERA', backgroundColor: 'blue' }),\r\n imageView = Ti.UI.createImageView({width:Ti.UI.FILL, height: '80%'});\r\n\r\nvar overlay = Ti.UI.createView({\r\n layout: 'vertical',\r\n height: '20%', width: Ti.UI.FILL,\r\n bottom: 0\r\n}),\r\ntakeButton = Ti.UI.createButton({ title: 'TAKE A PHOTO', backgroundColor: 'red' }),\r\nhideButton = Ti.UI.createButton({ title: 'HIDE PREVIEW', backgroundColor: 'red' });\r\n\r\ntakeButton.addEventListener('click', function () {\r\n Ti.Media.takePicture();\r\n});\r\nhideButton.addEventListener('click', function () {\r\n Ti.Media.hideCamera();\r\n});\r\noverlay.add(takeButton);\r\noverlay.add(hideButton);\r\n\r\nopenButton.addEventListener('click', function () {\r\n Ti.Media.showCamera({\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n overlay: overlay,\r\n success: function (e) {\r\n Ti.API.info('showCamera() success');\r\n imageView.image = e.media;\r\n },\r\n error: function () {\r\n Ti.API.info('showCamera() error');\r\n }\r\n });\r\n});\r\n\r\nwin.add(openButton);\r\nwin.add(imageView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-09T05:08:09.000+0000", "updated": "2016-06-09T05:08:09.000+0000" }, { "id": "388418", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-15T20:32:32.000+0000", "updated": "2016-06-15T20:37:50.000+0000" }, { "id": "388456", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "ok I see. There's a Windows API to show builtin camera UI: [CameraCaptureUI|https://msdn.microsoft.com/windows/uwp/audio-video-camera/capture-photos-and-video-with-cameracaptureui], but it seems it does not work on Windows Phone 8.x. So as far as I can see default camera UI can not be archived on WP 8.1. We could use CameraCaptureUI for Windows 10 (including Mobile). [~cwilliams] Do you think we can move this feature to 6.0.x as this is new feature?", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-16T06:23:57.000+0000", "updated": "2016-06-16T06:23:57.000+0000" }, { "id": "388502", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Yes for now.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-16T23:54:54.000+0000", "updated": "2016-06-16T23:54:54.000+0000" }, { "id": "388800", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pushed PR for builtin camera UI for Windows 10 (Mobile).\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/748\r\n\r\nUnfortunately, this control is not supported on Windows Phone 8.1 natively.\r\n\r\nFor workaround for Windows Phone 8.1, we could use {{Ti.Media.openPhotoGallery}} instead, to launch builtin camera UI.\r\n\r\n!SE-SS 2.png|thumbnail!\r\n\r\n{code}\r\nTi.Media.openPhotoGallery({\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n success: function (e) {\r\n if (e.mediaType === Ti.Media.MEDIA_TYPE_PHOTO) {\r\n imageView.image = e.media;\r\n }\r\n },\r\n cancel: function () {\r\n },\r\n error: function (err) {\r\n Ti.API.error(err);\r\n }\r\n});\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-22T03:21:36.000+0000", "updated": "2016-06-22T03:21:36.000+0000" }, { "id": "389522", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~kota] I need docs to be updated on 5_4_X with regards to this, what can be supported and what cannot. Can you do that for me please?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-30T03:20:11.000+0000", "updated": "2016-06-30T03:20:11.000+0000" }, { "id": "389528", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~cng] Sure, will do.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-30T04:12:45.000+0000", "updated": "2016-06-30T04:12:45.000+0000" }, { "id": "389538", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://wiki.appcelerator.org/display/guides2/Camera+and+Photo+Gallery+APIs#CameraandPhotoGalleryAPIs-DisplayingbuiltincameraforWindows", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-30T05:33:46.000+0000", "updated": "2016-06-30T05:33:46.000+0000" }, { "id": "395348", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-38\r\nAppc NPM: 4.2.8-6\r\nTi SDK: 6.0.0.v20160904203840\r\nLumia 930: 10.0\r\n\r\nWhen using the camera and not specifying an overlay the native camera controls are used\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-09-05T16:48:47.000+0000", "updated": "2016-09-05T16:48:47.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }