{ "id": "120352", "key": "TIMOB-15315", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-09-26T22:55:01.000+0000", "created": "2013-09-23T19:52:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T21:50: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Description\r\n\r\nM3u8 files can not be played in the VideoPlayer. This works in iOS.\r\n\r\nh4. Code to Reproduce\r\n\r\n{code}\r\nvar vidWin = Titanium.UI.createWindow({\r\n title : 'Video View Demo',\r\n backgroundColor : '#fff'\r\n});\r\n\r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n top : 2,\r\n autoplay : true,\r\n backgroundColor : 'blue',\r\n height : 300,\r\n width : 300,\r\n mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT\r\n});\r\n\r\nvideoPlayer.url = 'http://api.playonsports.com/v1/videos/68308.hls?Authorization=bearer%20a29a3bc05c8553dbe8409d7efabeaf8b';\r\nvidWin.add(videoPlayer);\r\nvidWin.open();\r\n{code}", "attachment": [ { "id": "42706", "filename": "videolog.txt", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-23T19:59:21.000+0000", "size": 764, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Can not play m3u8 files in VideoPlayer", "creator": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 4.3\r\nTitanium SDK 3.1.3GA", "comment": { "comments": [ { "id": "273078", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I put the above url to the web browser on my device (Galaxy Nexus 4.0 and Nexus 7 4.3). The video plays fine. And from the log, I found when it tried to load the m3u8 file, it redirected the url to 'http://cfhls.nfhsnetwork.com/62165/62165.m3u8'. The log is attached here:\r\n{code}\r\nI/LiveSession(20968): onConnect 'http://cfhls.nfhsnetwork.com/62165/62165.m3u8'\r\nV/ChromiumHTTPDataSource(20968): connect on behalf of uid 10017\r\nI/ChromiumHTTPDataSource(20968): connect to http://cfhls.nfhsnetwork.com/62165/62165.m3u8 @0\r\nD/dalvikvm(17067): GC_FOR_ALLOC freed 540K, 9% free 15385K/16839K, paused 38ms\r\nV/ChromiumHTTPDataSource(20968): connect on behalf of uid 10017\r\nI/ChromiumHTTPDataSource(20968): connect to http://cfhls.nfhsnetwork.com/62165/62165.m3u8 @0\r\nV/ChromiumHTTPDataSource(20968): connect on behalf of uid 10017\r\nI/ChromiumHTTPDataSource(20968): connect to http://cfhls.nfhsnetwork.com/62165/621650.ts @0\r\nV/ChromiumHTTPDataSource(20968): connect on behalf of uid 10017\r\nI/ChromiumHTTPDataSource(20968): connect to http://cfhls.nfhsnetwork.com/62165/621651.ts @0\r\n{code}\r\nI think the original host does not contain the real MPEG-TS files. So it failed to load the video in VideoPlayer.\r\n\r\nAfter I modified line 16 in the above test case to \r\n{code}\r\nvideoPlayer.url = \"http://cfhls.nfhsnetwork.com/62165/62165.m3u8\";\r\n{code}\r\nthe test case works and the video plays fine.\r\n\r\nAlso tested with a native Android project using [MediaPlayer|http://developer.android.com/reference/android/media/MediaPlayer.html]. The original url does not play but the modified url works fine. \r\nResolve the ticket as Invalid.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-26T22:50:19.000+0000", "updated": "2013-09-27T00:37:26.000+0000" }, { "id": "408943", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T21:50:45.000+0000", "updated": "2017-03-03T21:50:45.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }