{ "id": "84282", "key": "TIMOB-6888", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-02-10T10:45:43.000+0000", "created": "2011-12-27T11:02:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15143", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "84328", "key": "TIMOB-6915", "fields": { "summary": "iOS: Mimetype information is inadequate / misleading", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14379", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "83816", "key": "TIMOB-6667", "fields": { "summary": "iOS: Downloaded video from remote server, is not saved into photo gallery", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:35:45.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": "It appears that sometimes services return valid MPEG-4 video with the MPEG-7-only MIME type (application/mp4 instead of video/mp4), probably when the data is MPEG-47.\r\n\r\nSample code:\r\n\r\n{code}\r\nvar mp4_path = 'http://www.mp4point.com/downloads/f4f0ea5981b3.mp4'\r\n\r\ndownload_xhr = Ti.Network.createHTTPClient();\r\n\r\ndownload_xhr.onload = function() {\r\n\tTi.API.info('lets save the file');\r\n\tTitanium.Media.saveToPhotoGallery(this.responseData, {\r\n\t\tsuccess: function(e) {\r\n\t\t\tTi.API.info(\"SUCCESS!\");\r\n\t\t},\r\n\t\terror: function(e) {\r\n\t\t\tTi.API.info(\"GALLERY ERROR: \"+e.error);\r\n\t\t}\r\n\t});\r\n};\r\n\r\ndownload_xhr.onerror = function() {\r\n\tLogger.log ('[gallery_test:downloadMessage] onerror');\r\n\treturn;\r\n};\r\n\r\ndownload_xhr.open ('GET', mp4_path);\r\ndownload_xhr.send();\r\n{code}\r\n\r\nWhen fixing this bug it should be ensured that the video has the \"wrong\" MIME type.", "attachment": [], "flagged": false, "summary": "iOS: Need to support MIME type 'application/mp4' when saving video", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "182751", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Dupe of TIMOB-6915.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-10T10:45:43.000+0000", "updated": "2012-02-10T10:45:43.000+0000" }, { "id": "410611", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:35:45.000+0000", "updated": "2017-03-09T21:35:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }