{ "id": "164245", "key": "TIMOB-24133", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-11-14T02:45:36.000+0000", "created": "2016-10-27T09:43:44.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "look1" ], "versions": [], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-30T21:07:16.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": "Hello,\r\n\r\nI am facing an issue with the windows phone camera: I am not able to open it using the Titanium.Media.showCamera method. It returns a zero error code (access denied).\r\n\r\nI've put all the necessary permissions in the app.xml (correct me if I am wrong):\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\nI've been stuck on this issue for several days, any help would be greatly appreciated.\r\n\r\nThanks\r\n\r\n", "attachment": [ { "id": "60697", "filename": "win10sdk.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T12:48:07.000+0000", "size": 93084, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows phone bug - access denied to device camera", "creator": { "name": "Cryde", "key": "cryde", "displayName": "Jérémy Tonneau", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "Cryde", "key": "cryde", "displayName": "Jérémy Tonneau", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 10 professional\r\nTitanium SDK version: 5.5.1\r\nWindows phone SDK 8.1\r\n", "closedSprints": [ { "id": 752, "state": "closed", "name": "2016 Sprint 23 SDK", "startDate": "2016-11-05T00:39:37.027Z", "endDate": "2016-11-19T01:39:00.000Z", "completeDate": "2016-11-29T06:51:57.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "399954", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Did you define an overlay in there. Can you try the below code?\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green', layout:'vertical' }),\r\n\r\n openButton = Ti.UI.createButton({ title: 'OPEN CAMERA', backgroundColor: 'blue' }),\r\n\r\n imageView = Ti.UI.createImageView({width:Ti.UI.FILL, height: '80%'});\r\n\r\n \r\n\r\nvar overlay = Ti.UI.createView({\r\n\r\n layout: 'vertical',\r\n\r\n height: '20%', width: Ti.UI.FILL,\r\n\r\n bottom: 0\r\n\r\n}),\r\n\r\ntakeButton = Ti.UI.createButton({ title: 'TAKE A PHOTO', backgroundColor: 'red' }),\r\n\r\nhideButton = Ti.UI.createButton({ title: 'HIDE PREVIEW', backgroundColor: 'red' });\r\n\r\n \r\n\r\ntakeButton.addEventListener('click', function () {\r\n\r\n Ti.Media.takePicture();\r\n\r\n});\r\n\r\nhideButton.addEventListener('click', function () {\r\n\r\n Ti.Media.hideCamera();\r\n\r\n});\r\n\r\noverlay.add(takeButton);\r\n\r\noverlay.add(hideButton);\r\n\r\n \r\n\r\nopenButton.addEventListener('click', function () {\r\n\r\n Ti.Media.showCamera({\r\n\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n\r\n overlay: overlay,\r\n\r\n success: function (e) {\r\n\r\n Ti.API.info('showCamera() success');\r\n\r\n imageView.image = e.media;\r\n\r\n },\r\n\r\n error: function () {\r\n\r\n Ti.API.info('showCamera() error');\r\n\r\n }\r\n\r\n });\r\n\r\n});\r\n\r\n \r\n\r\nwin.add(openButton);\r\n\r\nwin.add(imageView);\r\n\r\nwin.open();\r\n{code}\r\n\r\nAlso, Send me the code you are running. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-10-27T18:43:56.000+0000", "updated": "2016-10-27T18:43:56.000+0000" }, { "id": "400090", "author": { "name": "Cryde", "key": "cryde", "displayName": "Jérémy Tonneau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't think this issue has anything to do with overlays. Anyway, I tried your code above but I get the same error message:\r\n\r\ncode : 0\r\nfailed to initialize capture device: Access is denied.\r\n\r\nCould you check if the windows manifest I use is correct?\r\n\r\nThanks.", "updateAuthor": { "name": "Cryde", "key": "cryde", "displayName": "Jérémy Tonneau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-31T09:37:59.000+0000", "updated": "2016-10-31T09:37:59.000+0000" }, { "id": "400323", "author": { "name": "Cryde", "key": "cryde", "displayName": "Jérémy Tonneau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "any news?", "updateAuthor": { "name": "Cryde", "key": "cryde", "displayName": "Jérémy Tonneau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-03T08:54:31.000+0000", "updated": "2016-11-03T08:54:31.000+0000" }, { "id": "400563", "author": { "name": "debuisson.eugene", "key": "debuisson.eugene", "displayName": "Debuisson Eugène", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I exactly have the same issue, I tried the code too and still access denied...\r\n\r\nAny news ?", "updateAuthor": { "name": "debuisson.eugene", "key": "debuisson.eugene", "displayName": "Debuisson Eugène", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-08T08:05:58.000+0000", "updated": "2016-11-08T08:05:58.000+0000" }, { "id": "400860", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{{webcam}} capability should be used with {{DeviceCapability}} tag. So {{tiapp.xml}} should look like below:\r\n\r\n{code:xml}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nFYI To make things easier, as of {{6.0.0}} {{Capability}} tag will be generated automatically based on API usage ( TIMOB-23156 ) .", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T02:45:36.000+0000", "updated": "2016-11-14T02:45:54.000+0000" }, { "id": "400880", "author": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for your feedback. But, when I'm using SDK 6, I get the following error while building:\r\n\r\nERROR] : Invalid \"--device-id\" value \"0\"\r\n\r\nHowever, it works fine with SDK 5.5.1 (although I have to upload the build file manually on the phone using the microsoft tool). \r\n\r\nAny idea?", "updateAuthor": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T09:05:42.000+0000", "updated": "2016-11-14T09:05:42.000+0000" }, { "id": "400889", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~joachim] Use of number value for {{device-id}} is not supported for now, use {{udid}} value which you can get from {{appc ti info -p windows -o json}}. For instance: \r\n\r\n{code}\r\ndevices: [\r\n {\r\n \"name\": \"Lumia 630 Dual SIM\",\r\n \"udid\": \"00000000-00x0-0b0b-0000-000000000000\",\r\n \"index\": 0,\r\n \"wpsdk\": \"8.1\",\r\n \"ip\": \"127.0.0.1\"\r\n }\r\n]\r\n{code}\r\n\r\nIn this case specify {{--device-id \"00000000-00x0-0b0b-0000-000000000000\"}},\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T10:31:48.000+0000", "updated": "2016-11-14T10:31:48.000+0000" }, { "id": "400895", "author": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks, but in my case the devises object is empty:\r\n\r\n \"devices\": []\r\n\r\nAlthough the devis is connected and recognized by Windows...", "updateAuthor": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T11:03:02.000+0000", "updated": "2016-11-14T11:03:02.000+0000" }, { "id": "400897", "author": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Remarks;\r\n\r\nI have the same issue on different windows phones;\r\nI refreshed the devices list;\r\n\r\nAny idea?", "updateAuthor": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T11:17:38.000+0000", "updated": "2016-11-14T11:17:38.000+0000" }, { "id": "400899", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hmm. maybe missing tools? ( maybe related: TIMOB-23976 ) Do you have Visual Studio 2015 installed with Windows 10 SDK and Windows 10 Emulators?\r\n\r\n[^win10sdk.png]", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T12:48:20.000+0000", "updated": "2016-11-14T12:48:20.000+0000" }, { "id": "400900", "author": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have just checked and I have the Windows 10 SDK and Windows 10 emulator installed. However, I don't see the windows 10 emulator in the appcelerator studio.\r\nI have joined a screenshot of the appc ti info command result, can you check it please?\r\nThanks a lot for your help!\r\n\r\n", "updateAuthor": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T14:16:43.000+0000", "updated": "2016-11-14T14:16:43.000+0000" }, { "id": "400901", "author": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Microsoft (R) Visual Studio\r\n 14.0 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\\r\n CLR Version = v4.0.30319\r\n MSBuild Version = v14.0.25420.1\r\n Windows Phone SDKs = not installed\r\n\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0 \r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\ \r\n 8.1 (selected) \r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\ \r\n\r\nWindows PowerShell \r\n Enabled = yes \r\n\r\nWindows Phone Emulators \r\n8.1 \r\n Emulator 8.1 WVGA 4 inch 512MB \r\n UDID 8-1-7 \r\n Emulator 8.1 WVGA 4 inch \r\n UDID 8-1-8 \r\n Emulator 8.1 WXGA 4.5 inch \r\n UDID 8-1-9 \r\n Emulator 8.1 720P 4.7 inch \r\n UDID 8-1-10 \r\n Emulator 8.1 1080P 5.5 inch \r\n UDID 8-1-11 \r\n Emulator 8.1 1080P 6 inch \r\n UDID 8-1-12 \r\n10.0 \r\n\r\nWindows Phone Devices ", "updateAuthor": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-14T14:20:17.000+0000", "updated": "2016-11-14T14:20:48.000+0000" }, { "id": "400946", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~joachim] I'm not quite sure what's going on with Appcelerator Studio. I saw Ti SDK 6.0.0.GA and new Studio is just released, so would you check out the latest one, and create new ticket for Studio (TISTUD) if it doesn't work as expected?\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-15T02:01:29.000+0000", "updated": "2016-11-15T02:01:29.000+0000" }, { "id": "400969", "author": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "joachim", "key": "joachim", "displayName": "Joachim Deneumostier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-15T10:45:26.000+0000", "updated": "2016-11-15T10:47:57.000+0000" }, { "id": "416382", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\" as a relevant Studio ticket has been opened. Anymore issues, please feel free to reopen the ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T21:07:16.000+0000", "updated": "2017-03-30T21:07:16.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }