{ "id": "164149", "key": "TIMOB-24066", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-10-25T06:07:38.000+0000", "created": "2016-10-21T22:02:02.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2017-03-24T18:56:40.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": "h6. description\r\nUpload a video from the gallery in iPhone7 Simulator is not working but it works as expected with iPhone 7 device .\r\n\r\nh6. Testing Environment\r\nTi SDK version 5.5.1.GA\r\nCLI 5.5.1\r\nSimulator Version iPhone7 v10\r\n\r\nh6. Steps to reproduce\r\n\r\n1. Just run this following code and try to select any video from the gallery, it get stuck on compressing page.\r\n\r\n2. Test Code\r\n{code: title=app.js}\r\n\r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n\tlayout : \"vertical\"\r\n});\r\n\r\n// Create a Button.\r\nvar gallery = Ti.UI.createButton({\r\n\ttitle : 'gallery',\r\n\theight : Ti.UI.SIZE,\r\n\twidth : Ti.UI.SIZE,\r\n\ttop : 20\r\n\r\n});\r\n\r\n// Add to the parent view.\r\nwin.add(gallery);\r\n\r\nfunction openGallery() {\r\n\r\n\tTitanium.Media.openPhotoGallery({\r\n\t\tsuccess : function(event) {\r\n\t\t\talert(event.media);\r\n\t\t},\r\n\t\tcancel : function() {\r\n\t\t\t// called when user cancels taking a picture\r\n\t\t},\r\n\t\terror : function(error) {\r\n\t\t\t// called when there's an error\r\n\t\t\tvar a = Titanium.UI.createAlertDialog({\r\n\t\t\t\ttitle : 'Camera'\r\n\t\t\t});\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\t//saveToPhotoGallery : true,\r\n\t\t// allowEditing and mediaTypes are iOS-only settings\r\n\t\t//allowEditing : true,\r\n\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO]\r\n\t});\r\n}\r\n\r\ngallery.addEventListener('click', function() {\r\n\topenGallery();\r\n});\r\n\r\nwin.open();\r\n\r\n\r\n{code}\r\n\r\nThanks\r\n", "attachment": [ { "id": "60590", "filename": "Screen Shot 2016-10-22 at 3.21.59 AM.png", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-10-21T21:46:20.000+0000", "size": 96396, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Uploading video from the gallery is not working for iPhone 7 simulator.", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [ { "id": "399623", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This issue is currently invalid in many cases:\r\n* You are talking about iOS 7 in the title but iPhone 7 in the description\r\n* You are talking about upload problems but don't specify any upload-related code that could reproduce it\r\n* It was tested on both iPhone 7 simulator and device and it works \r\n\r\nI only tested with master and 6.0.0 so far, but those should not differ from 5.5.1.GA in that functionality. Please update this ticket wth correct info, otherwise we will resolve it.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-22T09:40:56.000+0000", "updated": "2016-10-22T09:40:56.000+0000" }, { "id": "399770", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving for now, since we cannot reproduce it in the iPhone 7 Simulator (tested with both 10.0 and 10.1). If there is a unique use-case (e.g. a specific video format or size), please provide that one along with a full screen recording of the behavior. But I think using the latest SDK should be fine in this case. Thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-25T06:09:30.000+0000", "updated": "2016-10-25T06:09:30.000+0000" }, { "id": "415712", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:56:40.000+0000", "updated": "2017-03-24T18:56:40.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }