{ "id": "163023", "key": "TIMOB-23870", "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-09-12T08:46:04.000+0000", "created": "2016-09-06T14:24:38.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-15T16:13:29.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": "h5.Description\r\n\r\nWhen using the code below, if the view is tapped in an attempt to focus the camera then the following error is thrown {{\"code\":-1,\"error\":\"The request is not supported.\\r\\n\\r\\nThe request is not supported.\\r\\n\",\"success\":false\\}}\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: '70%' });\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 whichCamera: Ti.Media.CAMERA_FRONT,\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 (e) {\r\n alert('showCamera() error: ' + JSON.stringify(e));\r\n Ti.API.info(JSON.stringify(e));\r\n }\r\n });\r\n});\r\n \r\nwin.add(openButton);\r\nwin.add(imageView);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above code to your existing app.js\r\n# Tap OPEN CAMERA\r\n# Tap the screen\r\n\r\nh5.Actual result\r\n\r\nThe above error will be thrown\r\n\r\nh5.Expected result\r\n\r\nNo errors should be thrown", "attachment": [], "flagged": false, "summary": "Windows: 'The request is not supported' error thrown when using front camera and tapping view to focus", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "OS: 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", "closedSprints": [ { "id": 707, "state": "closed", "name": "2016 Sprint 19 SDK", "startDate": "2016-09-10T00:17:15.164Z", "endDate": "2016-09-24T00:17:00.000Z", "completeDate": "2016-09-26T05:17:04.253Z", "originBoardId": 114 }, { "id": 704, "state": "closed", "name": "2016 Sprint 18 SDK", "startDate": "2016-08-27T00:18:36.960Z", "endDate": "2016-09-10T00:18:00.000Z", "completeDate": "2016-09-09T20:26:13.865Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "395494", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/857\r\n6_0_X: https://github.com/appcelerator/titanium_mobile_windows/pull/858", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-07T09:01:00.000+0000", "updated": "2016-09-07T09:01:00.000+0000" }, { "id": "396229", "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-42\r\nAppc NPM: 4.2.8-6\r\nTi SDK: 6.0.0.v20160914165725\r\nAppc Studio: 4.8.0.201609101003\r\n\r\nWhen using the code in the description and tapping the screen the error is no longer thrown\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-09-15T16:13:23.000+0000", "updated": "2016-09-15T16:13:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }