{ "id": "118533", "key": "TIMOB-14885", "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": "15695", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15696", "description": "2013 Sprint 20 API", "name": "2013 Sprint 20 API", "archived": true, "released": true, "releaseDate": "2013-10-04" } ], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2013-09-25T20:37:14.000+0000", "created": "2013-08-14T22:40:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "look1", "supportTeam" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T20:55:28.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Issue\r\nDespite the fact both links are working and have the same conditions (same encoding and the same server) just fail to play.\r\n\r\nh5.Video formats\r\nBoth video files have Format H.264, Audio decoder AAC Tag 255.\r\n\r\nh6.On new HTC 4.1.2\r\nThis file can be played:\r\n\r\n- http://d269mq2d9sw4la.cloudfront.net/eSchool-video/13Q1-DannySilk-CultureOfHonor/13Q1-DannySilk-CultureOfHonor01.mp4\r\n\r\nBut not this one:\r\n\r\n- http://d269mq2d9sw4la.cloudfront.net/eSchool-video/09Q2-MikeBickle-1stCommandment/09Q2-MikeBickle-1stCommandment02.mp4\r\n\r\nh6.On Galaxy Note 4.1.2\r\nNone of them work\r\n\r\nh6.Droid Razr 2.3.5\r\nBoth are working\r\n\r\nh6.Snippet code\r\nTo reproduce just throw this code into an app.js and wait till video starts.\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar vidplayer = Ti.Media.createVideoPlayer({\r\n\twidth:Ti.UI.FILL,\r\n\theight:Ti.UI.FILL,\r\n\t//url:'http://d269mq2d9sw4la.cloudfront.net/eSchool-video/13Q1-DannySilk-CultureOfHonor/13Q1-DannySilk-CultureOfHonor01.mp4'\r\n\turl:'http://d269mq2d9sw4la.cloudfront.net/eSchool-video/09Q2-MikeBickle-1stCommandment/09Q2-MikeBickle-1stCommandment02.mp4'\r\n});\r\nwin1.add(vidplayer);\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n\r\nh6.Stack traces\r\nhttps://gist.github.com/egomez99/50b4fd78eeba02119c2a\r\n\r\nh6.Additional info\r\nLogs seem to evidence an error related to AwesomePlayer where is \"Error: 1,-2147483648\". Discussion topics suggest adding permissions in to manifest sections. E.g. \r\nhttp://www.weston-fl.com/blog/?p=2988\r\nhttp://stackoverflow.com/questions/11777595/playing-a-downloaded-video-error-1-2147483648\r\n\r\nHowever does not seem to work.\r\n{code}\r\n\r\n\r\n\r\n\r\n{code}\r\n\r\nIf this is an AwesomePlayer issue that is equipped already on recent devices, is there a way to detect it? Possibly using the Package manager to get information related to the application packages. http://developer.android.com/reference/android/content/pm/PackageManager.html ", "attachment": [], "flagged": false, "summary": "Android: VideoPlayer can't play certain remote mp4 files", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.1.GA & 3.2 CI Builds\r\nAndroid 2.x & 4.x", "comment": { "comments": [ { "id": "270569", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "See the suggestions here fix the issue\nhttp://stackoverflow.com/questions/11540076/android-mediaplayer-error-1-2147483648\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-10T14:09:36.000+0000", "updated": "2013-09-10T14:09:36.000+0000" }, { "id": "271272", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi [~sunila],\n\nThe stack over link above has several suggestions. Can you please elaborate on what exactly can the customer have a try?", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T15:25:02.000+0000", "updated": "2013-09-16T15:25:02.000+0000" }, { "id": "271902", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "The error code is very generic and most of the time the problem seems to be related to how the file is constructed. Sorry, I don't have a specific solution.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-19T14:18:40.000+0000", "updated": "2013-09-19T14:18:40.000+0000" }, { "id": "272230", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "BTW, \"http://d269mq2d9sw4la.cloudfront.net/eSchool-video/09Q2-MikeBickle-1stCommandment/09Q2-MikeBickle-1stCommandment02.mp4\" is not a valid link any more.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-20T21:28:16.000+0000", "updated": "2013-09-20T21:28:16.000+0000" }, { "id": "272878", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue is due to the video encoding. Resolve the ticket as Not Our Bug.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-25T20:36:45.000+0000", "updated": "2013-09-25T20:36:45.000+0000" }, { "id": "414398", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:55:28.000+0000", "updated": "2017-03-21T20:55:28.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }