{ "id": "172668", "key": "TIMOB-26599", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-05-09T17:31:02.000+0000", "created": "2018-11-26T14:31:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "compression", "iOS", "performance", "video" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-09T17:31:02.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": "*Summary:*\r\nWhen selecting a video from the gallery, iOS will transcode/convert the selected video by default and return the newly formatted video instead. This can cause a very long delay if the video is large.\r\n\r\n*Solution:*\r\nAdd an iOS-only \"allowTranscoding\" option for our {{Ti.Media.openPhotoGallery()}} method, when set {{false}}, will return the selected video as-is without transcoding it. This will solve the long delay issue.\r\n\r\n{code:javascript}\r\nTi.Media.openPhotoGallery({\r\n\tallowTranscoding: false,\r\n\tmediaTypes: [Ti.Media.MEDIA_TYPE_VIDEO],\r\n\tsuccess: function(e) {\r\n\t\t// Got it.\r\n\t},\r\n});\r\n{code}\r\n\r\n*Note:*\r\nThere is no equivalent to this on Android, which always returns a reference to the video as-is. So, this is an iOS only feature.\r\n\r\n*Native Implementation Details:*\r\nAdd this code at line 1746. I can provide a PR\r\n{code:java}\r\nif ([TiUtils isIOS11OrGreater]) {\r\n BOOL disableVideoCompression = [TiUtils boolValue:@\"disableVideoCompression\" properties:args def:NO];\r\n if (disableVideoCompression) {\r\n picker.videoExportPreset = AVAssetExportPresetPassthrough;\r\n }\r\n }\r\n [self displayModalPicker:picker settings:args];\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Add \"allowTranscoding\" option to Ti.Media.openPhotoGallery()", "creator": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1129, "state": "closed", "name": "2019 Sprint 10", "startDate": "2019-04-28T22:06:00.000Z", "endDate": "2019-05-17T22:06:00.000Z", "completeDate": "2019-05-20T16:48:42.522Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "443905", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rlustemberg] Thanks for reporting. PR is appreciated :)", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-27T03:44:35.000+0000", "updated": "2018-11-27T03:44:35.000+0000" }, { "id": "443919", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just made the PR. Cheers!", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-11-27T10:48:24.000+0000", "updated": "2018-11-27T10:48:24.000+0000" }, { "id": "445944", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/10492", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-08T18:40:40.000+0000", "updated": "2019-02-08T18:40:40.000+0000" }, { "id": "446355", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-27T13:15:48.000+0000", "updated": "2019-02-27T13:15:48.000+0000" }, { "id": "448265", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the Fix on sdk 8.1.0.v20190509024838.Works as expected.\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 8.1.0.v20190509024838\r\nDevice =iPhone X iOS 11\r\nSimulator =iPhone 6s iOS 12\r\n{code}", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-05-09T17:30:57.000+0000", "updated": "2019-05-09T17:30:57.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }