{ "id": "146767", "key": "TIMOB-18815", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-04-30T16:05:10.000+0000", "created": "2015-04-09T02:07:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "camera", "gallery", "video" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" } ], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-05-04T20:39:33.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Reproduce Step:\r\nSimply run the test case in a classic project.\r\n{code:title=app.js}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttop: 100,\r\n\tleft: 30,\r\n\ttitle: \"Show Camera\",\r\n});\r\nbutton.addEventListener(\"click\", function(){\r\n\tTitanium.Media.showCamera({\r\n\t\tsuccess:function(event) {\r\n \t\t\t// called when media returned from the camera\r\n\t\t\tTi.API.info('showCamera: ' + JSON.stringify(event));\r\n\t\t\tif (event.mediaType == Ti.Media.MEDIA_TYPE_VIDEO) {\r\n\t\t\t\t\r\n\t\t\t\talert(\"Video saved\");\r\n\t\t\t}\r\n\t\t},\r\n\t\tcancel:function() {\r\n \t\t\talert(\"cancelled Camera!\");\r\n\t\t},\r\n\t\terror:function(error) {\r\n\t\t\tvar a = Titanium.UI.createAlertDialog({title:'Camera'});\r\n \t\t\tif (error.code == Titanium.Media.NO_CAMERA) {\r\n\t\t\t\ta.setMessage('Please run this test on device');\r\n\t\t\t} else {\r\n\t\t\t\ta.setMessage('Unexpected error: ' + error.code);\r\n\t\t\t}\r\n\t\t\ta.show();\r\n\t\t},\r\n\t\tsaveToPhotoGallery:true,\r\n\t\tallowEditing : true,\r\n\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO]\r\n\t});\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\nh5.Expect Result:\r\nVideo should save into gallery, like a picture. \r\n\r\nh5.Actual Result:\r\nConsole log shows the camera saved. But can't find it in gallery. ", "attachment": [], "flagged": false, "summary": "iOS: Not able to store video in Gallery when captured directly from the app", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 3.5.*\r\niOS 8.2", "closedSprints": [ { "id": 398, "state": "closed", "name": "2015 Sprint 09 SDK", "startDate": "2015-04-25T00:00:00.000Z", "endDate": "2015-05-09T00:00:00.000Z", "completeDate": "2015-05-11T14:11:17.028Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "349336", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this a regression? Did this used to work in a previous version.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-13T16:37:14.000+0000", "updated": "2015-04-13T16:37:14.000+0000" }, { "id": "351243", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/6814\r\n4_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/6815", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-30T07:35:12.000+0000", "updated": "2015-04-30T07:35:12.000+0000" }, { "id": "351580", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nMac OSX 10.10.3\r\nTitanium SDK build: 4.0.0.v20150430090209\r\nAppc CLI (NPM): 0.3.55\r\nAppc CLI (Registry): 0.2.279\r\n\r\nUsing the attached code the video is now saved to the gallery as expected\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-05-04T20:39:25.000+0000", "updated": "2015-05-04T20:39:25.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }