{ "id": "126747", "key": "AC-2667", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-03-03T02:45:54.000+0000", "created": "2014-02-22T20:55:22.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:46.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": [], "description": "h3. Steps to Reproduce\r\nHi there, I am developing an mobile application for Android and iOS using appcelerator titanium alloy framework, code for the capture Video button is as follows: \r\n\r\n{code}\r\n//+++++++++++++++++++++++++++++++++++++++++ $.captureVidBtn.addEventListener('click',function(e){ Ti.Media.showCamera({ success: function(event){ //// Ti.Media.saveToPhotoGallery(event.media); var sendit = Titanium.Network.createHTTPClient({ onerror:function(e){ //TI.API.debug(e.error); alert('There was an error durring connectiing with server...'); }, onload:function(e){ //TI.API.info('Received text: ' + this.responseText); response = this.responseText; alert(response);\r\n } \r\n });\r\n sendit.open("POST",WEB_SERVICE_URL);\r\n var uploadParams = ({"mobile_form_action":"upload_video","media":event.media,});\r\n sendit.send(uploadParams); \r\n ////\r\n\r\n},\r\nanimated:true,\r\nautoHide:true,\r\nsaveToPhotoGallery:true,\r\nshowControls:true,\r\nallowEditing:true,\r\nmediaTypes:[Ti.Media.MEDIA_TYPE_VIDEO,Ti.Media.MEDIA_TYPE_PHOTO],\r\nvideoQuality:Ti.Media.QUALITY_640x480,\r\n}); }); \r\n//+++++++++++++++++++++++++++++++++++++++++ \r\n{code}\r\n\r\nwhen I execute the application, the camera appears but it can take pictures only , the video mode is disabled :(,\r\nCoding Environment: >> Macbook Pro, >> Titanium Studio 3.2.x >> Checking on Android Samsung Galaxy Young Device connected to mac machine\r\nPlease help\r\nThanks\r\n\r\nh3. Actual Result\r\nVideo button in start seems to be enabled but later it disabled\r\n\r\nh3. Expected Result\r\nvideo and photo both should be able to get uploaded only photo is getting uploaded not video, we cannot even record the video ", "attachment": [ { "id": "46134", "filename": ".log", "author": { "name": "amitduttjoshi", "key": "amitduttjoshi", "displayName": "Amit Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-22T20:56:40.000+0000", "size": 4105825, "mimeType": "text/plain" }, { "id": "46135", "filename": "diagnostic7267377798820025427.log", "author": { "name": "amitduttjoshi", "key": "amitduttjoshi", "displayName": "Amit Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-22T20:56:52.000+0000", "size": 14202, "mimeType": "text/plain" } ], "flagged": false, "summary": "showCamera does not capture video it captures image only", "creator": { "name": "amitduttjoshi", "key": "amitduttjoshi", "displayName": "Amit Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amitduttjoshi", "key": "amitduttjoshi", "displayName": "Amit Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 3.2.0", "comment": { "comments": [ { "id": "294313", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide a simple but complete test case that we can run as it is to reproduce this issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T06:22:36.000+0000", "updated": "2014-02-24T06:22:36.000+0000" }, { "id": "294321", "author": { "name": "amitduttjoshi", "key": "amitduttjoshi", "displayName": "Amit Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is the test case:-\n\nThere is a button with id: \nALLOY XML:\n===============================\n\n\nALLOY JS CODE FOR THE BUTTON:\n=================================\n$.browseVidBtn.addEventListener('click',function(e){\n\n Titanium.Media.openPhotoGallery({\n \tsuccess: function(event){\n\t\t ////\n\t\t//Titanium.Media.saveToPhotoGallery(event.media);\n\t\tvar sendit = Titanium.Network.createHTTPClient({\n\t\tonerror:function(e){\n\t\t\t//TI.API.debug(e.error);\n\t\t\talert(\"There was an error durring connectiing with server...\");\n\t\t},\n\t\tonload:function(e){\n\t\t\t\t//TI.API.info(\"Received text: \" + this.responseText);\n\t\t\t\tresponse\t=\tthis.responseText;\n\t\t\t\talert(response);\n\t\t\t\t\n\t\t\t}\t\n\t\t});\n\n\t\tsendit.open(\"POST\",WEB_SERVICE_URL);\n //URL where the file has to be posted\n\t\tvar uploadParams\t= ({\"vTitle\":vTitle,\"vDesc\":vDesc,\"vTag\":vTag,\"mobile_form_action\":\"upload_video\",\"media\":event.media,});\n\t\tsendit.send(uploadParams); \n\t\t ////\n \t},\n \tautoHide:true,\n \tvideoQuality:Titanium.Media.QUALITY_HIGH,\n \tmediaTypes:[Titanium.Media.MEDIA_TYPE_VIDEO,Titanium.Media.MEDIA_TYPE_PHOTO,],\n });\n});\n\n\n\nISSUE:-\n=============================\nISSUE is that when the button is clicked camera is appearing but I can only capture the image,\nI cannot take the video. can you please tell me whats the issue , I got the code from appcelerator online help documentation.\n\n\nKindly let me know whats wrong in the code?? is there something i have to write additional oir I had writen something wrong?\n\nlet me know please", "updateAuthor": { "name": "amitduttjoshi", "key": "amitduttjoshi", "displayName": "Amit Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T06:42:57.000+0000", "updated": "2014-02-24T06:42:57.000+0000" }, { "id": "294328", "author": { "name": "amitduttjoshi", "key": "amitduttjoshi", "displayName": "Amit Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "any luck???", "updateAuthor": { "name": "amitduttjoshi", "key": "amitduttjoshi", "displayName": "Amit Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T10:32:45.000+0000", "updated": "2014-02-24T10:32:45.000+0000" }, { "id": "294456", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Have you tried the kitchen sink application that comes with studio? If not, you can download it from studio.\n\nRun the kitchen sink app, go to Phone ==> Camera ==> Video record.\n\nThe video works perfectly fine.\n\nPlease let me know if you are looking for something else.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T20:53:10.000+0000", "updated": "2014-02-24T20:53:10.000+0000" }, { "id": "295208", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this ticket as we have not been able to reproduce this issue as we have not received any further information from the reporter.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-03T02:45:54.000+0000", "updated": "2014-03-03T02:45:54.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }