{ "id": "161442", "key": "AC-3957", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-07-20T19:00:59.000+0000", "created": "2016-06-29T14:29:46.000+0000", "labels": [ "android", "bug", "camera" ], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-07-20T19:00:59.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When specifying multiple media types in the function \"showCamera\" ( video & photo ), then you can only record a video. The switch between video and photo is not possible. On iOS it works.\r\n\r\n*Tested on Nexus 9 /Android 6.0.1*\r\n\r\n*Example:*\r\n{code:java}\r\nTitanium.Media.showCamera({\r\n\t\t\tsaveToPhotoGallery : false,\r\n\t\t\tallowImageEditing : false,\r\n\t\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO, Ti.Media.MEDIA_TYPE_VIDEO],\r\n\t\t\tvideoQuality : Ti.Media.QUALITY_LOW,\r\n\t\t\tsuccess : function(event) {\r\n\t\t\t\t. . .\r\n\t\t\t},\r\n\t\t\tcancel : function() {\r\n\t\t\t\t. . .\r\n\t\t\t},\r\n\t\t\terror : function(error) {\r\n\t\t\t\t. . .\r\n\t\t\t}\r\n\t\t});\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Unable to use multiple mediaTypes", "creator": { "name": "Tazz85", "key": "tazz85", "displayName": "Stefan Sgorzaly", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Tazz85", "key": "tazz85", "displayName": "Stefan Sgorzaly", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "390626", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, According to the docs http://docs.appcelerator.com/platform/latest/#!/guide/Camera_and_Photo_Gallery_APIs the way you are using the showCamera function you can only capture photo in Android. See the first example note. For video capture in Android there is example provided later on. \r\n\r\nThanks\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-07-13T19:46:03.000+0000", "updated": "2016-07-13T19:46:03.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }