{ "id": "147582", "key": "TIMOB-18913", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-08T22:39:32.000+0000", "created": "2015-05-06T14:35:20.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "47765", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "146160", "key": "AC-1420", "fields": { "summary": "VideoPlayer is not working on Android 5.0 Lollipop", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "47766", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "147262", "key": "TIMOB-18858", "fields": { "summary": "Android: Videoplayer events do not work well on Android lollipop", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "48177", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "140610", "key": "TIMOB-18888", "fields": { "summary": "Android Lollipop problem cache with MediaPlayer", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "48697", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "150467", "key": "TIMOB-19360", "fields": { "summary": "Android: Video player is not playing mp4 files on 4.X android & genymotion emulators", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-08-17T20:52:39.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": "*Description:*\r\n\r\nVideo playback on Android L seems broken with SDK 3.5.1 (and 4.0.0RC2). MP4 files do not show video and audio output.\r\n\r\n\r\n*How to reproduce:*\r\n\r\nRun the attached app.js on a Android L device. Code is taken from http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Media.VideoPlayer.\r\n\r\n\r\n*What should happen:*\r\n\r\nVideo should be played after the app is deployed.\r\n\r\n\r\n*What does happen:*\r\n\r\nBlank/Black VideoPlayer, no video is played, no sound.\r\nAfter several seconds the console shows (both of them!):\r\n[ERROR] : MediaPlayer: error (1, -2147483648)\r\n[ERROR] : MediaPlayer: Error (1,-2147483648)\r\nNothing more changes.\r\n\r\nSetting autoplay to false and adding a call to .play on the VideoPlayer object creates this log message:\r\n[WARN] : VideoPlayerProxy: (main) [101,101] Player action ignored; player has not been created.\r\n\r\n\r\n*Where does it work:*\r\n\r\nThe same app does work on a Nexus 10 device running Android 4.4.4 (KitKat). It does not work either on other devices running Android 5.0.2 and 5.1. It does work in iOS simulator. It does not work with Ti SDK 4.0.0RC2 on Android 5.1. Several different mp4 files do not work either in the environment described.", "attachment": [ { "id": "55253", "filename": "app.js", "author": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-05-06T14:32:16.000+0000", "size": 710, "mimeType": "text/javascript" }, { "id": "55252", "filename": "Screenshot_2015-05-06-16-32-14.png", "author": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-05-06T14:33:39.000+0000", "size": 22137, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: VideoPlayer is not playing mp4 videos anymore on Android L/Lollipop/5", "creator": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android L (5.1)\r\nNexus 7\r\nTi SDK 3.5.1", "closedSprints": [ { "id": 441, "state": "closed", "name": "2015 Sprint 14 SDK", "startDate": "2015-07-04T01:00:23.204Z", "endDate": "2015-07-18T01:00:00.000Z", "completeDate": "2015-07-28T06:37:47.083Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "351802", "author": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "body": "I just see this is probably wrong here, I think it would belong to Project TIMOB. Can somebody move this or tell me where to do that myself?\r\n\r\nSorry for the inconvenience!", "updateAuthor": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-05-06T14:43:35.000+0000", "updated": "2015-05-06T14:43:35.000+0000" }, { "id": "351803", "author": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-05-06T14:44:50.000+0000", "updated": "2015-05-06T14:44:50.000+0000" }, { "id": "352361", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is reproducible . Mp4 flies don't play on android Lollypop. \r\n\r\nEnvironment:\r\nAppc Studio : 4.0.0.201505120319\r\nTi SDK : 4.0.0.v20150512005012, 3.5.1.GA\r\nCLI : 4.0.0-beta8\r\nAlloy : 1.6.0-beta4\r\nMAC Yosemite : 10.10.3\r\nAppc npm : 0.3.55\r\nAppc CLI : 0.2.282\r\nNode: v0.10.37\r\nAndroid : 5.0.2 , 4.4.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-12T23:38:28.000+0000", "updated": "2015-05-12T23:38:39.000+0000" }, { "id": "354711", "author": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm able to reproduce this problem\r\nAndroid 5.1.1\r\nTitanium SDK 3.5.1\r\n\r\nFrom the logs when I open the VideoPlayer:\r\n\r\n06-09 21:17:46.216: E/ExtMediaPlayer-JNI(6914): QCMediaPlayer could not be located....\r\n06-09 21:17:46.216: E/MediaPlayer-JNI(6914): QCMediaPlayer mediaplayer NOT present\r\n\r\n....\r\n\r\n06-09 21:18:16.786: E/MediaPlayer(6914): error (1, -2147483648)\r\n06-09 21:18:16.787: E/MediaPlayer(6914): Error (1,-2147483648)\r\n\r\nAnd the VideoPlayer closes\r\n\r\n\r\nIs there any ETA on this issue? This is very critical for my video app", "updateAuthor": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-10T00:02:46.000+0000", "updated": "2015-06-10T00:02:46.000+0000" }, { "id": "354880", "author": { "name": "arthurpadilha", "key": "arthurpadilha", "displayName": "Arthur Padilha", "active": true, "timeZone": "America/Recife" }, "body": "I had the same issue with in my application.\r\n\r\nAndroid 5.1.1 / Ti SDK 3.5.1\r\n\r\nThe video doesn't start playing.\r\n\r\nThe core functionallity of my app is video reproducing, please fix this issue!", "updateAuthor": { "name": "arthurpadilha", "key": "arthurpadilha", "displayName": "Arthur Padilha", "active": true, "timeZone": "America/Recife" }, "created": "2015-06-11T14:39:35.000+0000", "updated": "2015-06-11T14:39:35.000+0000" }, { "id": "355232", "author": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "body": "Same issue here. Seriously no one is working on this???", "updateAuthor": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-16T17:21:30.000+0000", "updated": "2015-06-16T17:21:30.000+0000" }, { "id": "355275", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-16T22:24:59.000+0000", "updated": "2015-06-16T22:24:59.000+0000" }, { "id": "355276", "author": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "body": "Really? The remote video sample in the Kitchen Sink app doesn't work for me using the nightly build from June 16...", "updateAuthor": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-16T22:32:33.000+0000", "updated": "2015-06-16T22:32:33.000+0000" }, { "id": "355544", "author": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested against 4.1.0.v20150618212032 and it has not been fixed\r\n\r\n{quote}\r\n06-19 12:05:48.134: W/VideoPlayerProxy(476): (KrollRuntimeThread) [104191,255306] movieControlMode is deprecated. Use mediaControlStyle instead.\r\n06-19 12:05:48.134: I/Timeline(476): Timeline: Activity_launch_request id:com.test time:85199265\r\n06-19 12:05:48.230: W/VideoPlayerProxy(476): (main) [96,255402] Player action ignored; player has not been created.\r\n06-19 12:05:48.231: W/VideoPlayerProxy(476): (main) [1,255403] Player action ignored; player has not been created.\r\n06-19 12:05:48.364: E/ExtMediaPlayer-JNI(476): QCMediaPlayer could not be located....\r\n06-19 12:05:48.364: E/MediaPlayer-JNI(476): QCMediaPlayer mediaplayer NOT present\r\n06-19 12:05:48.365: D/MediaPlayer(476): Couldn't open file on client side, trying server side\r\n06-19 12:05:48.377: D/MediaHTTPConnection(476): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.1.1)\r\n06-19 12:05:48.380: D/MediaHTTPConnection(476): proxy null port 0\r\n06-19 12:05:48.496: I/Timeline(476): Timeline: Activity_idle id: android.os.BinderProxy@33198afa time:85199627\r\n06-19 12:05:50.985: D/MediaHTTPConnection(476): proxy null port 0\r\n06-19 12:05:51.337: W/MediaHTTPConnection(476): readAt 31019992 / 32768 => java.net.ProtocolException\r\n06-19 12:05:51.353: E/MediaPlayer(476): Should have subtitle controller already set\r\n06-19 12:05:51.439: D/MediaHTTPConnection(476): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.1.1)\r\n06-19 12:05:51.442: D/MediaHTTPConnection(476): proxy null port 0\r\n06-19 12:05:51.629: W/MediaHTTPConnection(476): readAt 292920 / 32768 => java.net.ProtocolException\r\n06-19 12:05:51.730: D/MediaHTTPConnection(476): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.1.1)\r\n06-19 12:05:51.732: D/MediaHTTPConnection(476): proxy null port 0\r\n06-19 12:05:51.897: W/MediaHTTPConnection(476): readAt 293432 / 32768 => java.net.ProtocolException\r\n06-19 12:05:52.090: E/MediaPlayer(476): error (1, -1004)\r\n06-19 12:05:52.091: E/MediaPlayer(476): Error (1,-1004)\r\n06-19 12:05:52.091: D/TiVideoView8(476): (main) [3860,259263] Error: 1,-1004\r\n06-19 12:05:52.390: E/MediaPlayer(476): error (1, -1004)\r\n06-19 12:05:52.417: I/Timeline(476): Timeline: Activity_idle id: android.os.BinderProxy@163007b0 time:85203548\r\n{quote}", "updateAuthor": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-19T15:10:15.000+0000", "updated": "2015-06-19T15:10:48.000+0000" }, { "id": "355609", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6928\r\nTest code in PR.\r\n\r\nTest with an Android 5.1.1 or above.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-06-22T05:37:23.000+0000", "updated": "2015-06-22T05:44:06.000+0000" }, { "id": "355871", "author": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any updates? Doesn't work on my Nexus with 5.1 (Lollipop), video never loads, using the 3.5 AND 4.0", "updateAuthor": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-24T18:29:17.000+0000", "updated": "2015-06-24T18:29:37.000+0000" }, { "id": "356021", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~josh.lewis] Is there a sample link that you could provide that you are using this with?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-06-26T02:06:04.000+0000", "updated": "2015-06-26T02:06:04.000+0000" }, { "id": "356062", "author": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This one loads fine\r\nhttp://s3.amazonaws.com/playbackacp.com/2013MOC/10.Reynolds.mp4\r\n\r\nThis one does NOT\r\nhttp://s3.amazonaws.com/playbackacp.com/865/challenge_2/865-01-05.mp4\r\n\r\nUsing the regular player sample code, nothing fancy. Both work in iOS", "updateAuthor": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-26T14:31:12.000+0000", "updated": "2015-06-26T14:31:12.000+0000" }, { "id": "356550", "author": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't really know what that means. Are you saying track down the java class everytime I compile and change it somehow?", "updateAuthor": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-01T13:54:04.000+0000", "updated": "2015-07-01T13:54:04.000+0000" }, { "id": "357222", "author": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Ashraf Abu\r\nAnother sample link that doesn't work: http://108.59.9.98/big_buck_bunny.mp4", "updateAuthor": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-07T23:57:42.000+0000", "updated": "2015-07-07T23:57:42.000+0000" }, { "id": "357233", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~davidbenko] Will look into it. Thanks.\r\n[~josh.lewis] I'm currently looking into this. Once it's fixed, you shouldn't need to do anything except get the latest Titanium SDK.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-07-08T01:05:01.000+0000", "updated": "2015-07-08T01:05:01.000+0000" }, { "id": "357322", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Just an update for watchers, this ticket was resolved with the PR: https://github.com/appcelerator/titanium_mobile/pull/6928", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-07-08T23:15:26.000+0000", "updated": "2015-07-08T23:15:26.000+0000" }, { "id": "357362", "author": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "body": "Thanks @Ashraf Abu! \r\n\r\nAny way I can get this fix into my current (4.0.0) sdk? I've never compiled the titanium sdk myself. Or is there some (stable) compiled version I can download that includes this fix?", "updateAuthor": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-09T13:40:09.000+0000", "updated": "2015-07-09T13:40:09.000+0000" }, { "id": "357424", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Hi [~bradleycorn]. This is going to be released in 4.2.0 which is the next release. (4.1.0.GA just got released http://www.appcelerator.com/blog/2015/07/4-1-0-ga-now-available/)\r\n\r\nIf you really need to get the bleeding edge functionality and the most recent bug fixes to the Titanium SDKs, without waiting for an official release, you can try http://docs.appcelerator.com/platform/latest/#!/guide/Installing_Titanium_SDK_Continuous_Builds This particular fix would be available in the Master branch.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-07-10T03:34:28.000+0000", "updated": "2015-07-10T03:34:28.000+0000" }, { "id": "357456", "author": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That still doesn't seem to fix it. Make a simple app that loads a videoplayer and use this url, and you'll see it doesn't work.\r\n\r\nhttps://s3.amazonaws.com/playbackacp.com/865/challenge/865-01-03.mp4", "updateAuthor": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-10T13:32:53.000+0000", "updated": "2015-07-10T13:32:53.000+0000" }, { "id": "357479", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~joshlewis], The url works for me with the latest 4.2.0 SDK (master) which is not out yet.\r\nWhich titanium SDK & android version you checked it with ?\r\n\r\nTested with these components:\r\nAppc Studio : 4.1.0.201507071122\r\nTi SDK : 4.2.0.v20150710092422\r\nTi CLI : 4.0.1\r\nAlloy : 1.6.2\r\nMAC Yosemite : 10.10.4\r\nAppc NPM : 4.1.0\r\nAppc CLI : 4.1.0\r\nNode: v0.10.37\r\nNexus 5 - Android 5.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-10T18:03:46.000+0000", "updated": "2015-07-10T18:03:46.000+0000" }, { "id": "357509", "author": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My mistake, it did work on the emulator. \r\n\r\nWill this not work on Kitkat, since its the most popular right now? Lolipop is only at about 2%, KitKat is almost 40%.", "updateAuthor": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-11T01:18:37.000+0000", "updated": "2015-07-11T01:18:37.000+0000" }, { "id": "357528", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tested with Galaxy S5, SM-G900F that is on 4.4.2 (KitKat). Works fine. This fix was for Android Lollipop.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-07-13T02:08:37.000+0000", "updated": "2015-07-13T02:08:37.000+0000" }, { "id": "357599", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nTested with the code below with multiple url's:\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 //url : 'http://s3.amazonaws.com/playbackacp.com/865/challenge_2/865-01-05.mp4' //This video takes some time to load.\r\n //url : 'http://player.vimeo.com/external/121659103.sd.mp4?s=b04ddefe800446e09bd2cdf7e6193aa9'\r\n //url : 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'\r\n //url : 'http://108.59.9.98/big_buck_bunny.mp4'\r\n //url : 'http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/aaa/aaa0033/aaa0033_h264b_640x368_256.mp4'\r\n url: 'https://s3.amazonaws.com/playbackacp.com/865/challenge/865-01-03.mp4'\r\n //url: 'http://www.html5videoplayer.net/videos/toystory.mp4'\r\n});\r\n\r\n\r\nvidWin.add(videoPlayer);\r\nvidWin.open();\r\n{code}\r\n\r\nThe video's play fine on android lollipop.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.1.0.201507071122\r\nTi SDK : 4.2.0.v20150710092422\r\nTi CLI : 4.0.1\r\nAlloy : 1.6.2\r\nMAC Yosemite : 10.10.4\r\nAppc NPM : 4.1.0\r\nAppc CLI : 4.1.0\r\nNode: v0.10.37\r\nNexus 5 - Android 5.1.1, Android 5.0\r\nSamsung Galaxy S4 - Android 4.4.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-13T22:03:52.000+0000", "updated": "2015-07-13T22:03:52.000+0000" }, { "id": "357623", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Verified the fix. In SDK 4.1.0.GA\r\n\r\nTested with the code below with multiple url's:\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 //url : 'http://player.vimeo.com/external/121659103.sd.mp4?s=b04ddefe800446e09bd2cdf7e6193aa9'\r\n //url : 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'\r\n //url : 'http://108.59.9.98/big_buck_bunny.mp4'\r\n //url : 'http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/aaa/aaa0033/aaa0033_h264b_640x368_256.mp4'\r\n url: 'https://s3.amazonaws.com/playbackacp.com/865/challenge/865-01-03.mp4'\r\n //url: 'http://www.html5videoplayer.net/videos/toystory.mp4'\r\n});\r\n \r\n \r\nvidWin.add(videoPlayer);\r\nvidWin.open();\r\n{code}\r\n\r\n\r\nThe video's play fine on android lollipop.\r\n\r\nEnvironment:\r\nAppcelerator Studio, build: 4.1.0.201507071122\r\nTi SDK : 4.1.0.GA\r\nCLI : 3.4.1\r\nAlloy : 1.6.2\r\nMAC Yosemite : 10.10.4\r\nAppc NPM : 4.1.0\r\nAppc CLI : 4.1.0\r\nNode: v0.10.37\r\nNexus 7 - Android 5.1.1, Android 5.0\r\n", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-07-14T05:18:28.000+0000", "updated": "2015-07-14T05:18:28.000+0000" }, { "id": "360064", "author": { "name": "etruta", "key": "etruta", "displayName": "Eduardo Silva", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "In my tests the error still happens in Android 4.2.2. (Genymotion Emulator: Motorola Moto X - 4.2.2 - API 17 - 720x1280)\r\n\r\nUsing the sdk build: 4.2.0.v20150815030432\r\n\r\nThe link to a alloy project is here: https://www.dropbox.com/s/rocwpcy4jvnwzhd/vimeoPlayer-test.zip?dl=0\r\n\r\n{code:title=lib/vimeo-player.js}\r\nvar Player = {\r\n\r\n win: null,\r\n videoPlayer: null,\r\n isPlaying: false,\r\n\r\n play: function(_id) {\r\n Player.isPlaying = true;\r\n Player.getVideo(_id);\r\n },\r\n\r\n getVideo: function(_id) {\r\n var vimeoVideoConfig = 'http://player.vimeo.com/video/' + _id + '/config';\r\n console.log(\"vimeoVideoConfig:\", vimeoVideoConfig);\r\n\r\n var xhr = Titanium.Network.createHTTPClient({ timeout : 10000 /* in milliseconds */});\r\n xhr.open(\"GET\", vimeoVideoConfig);\r\n xhr.onerror = function(_error) {\r\n Ti.API.log('Player ERROR:', _error);\r\n };\r\n xhr.onload = function(){\r\n var response = JSON.parse(this.responseText);\r\n var videoUrl;\r\n\r\n try {\r\n videoUrl = response.request.files.h264.mobile.url\r\n } catch(e) {\r\n videoUrl = response.request.files.h264.sd.url\r\n }\r\n\r\n Player.playVideo(videoUrl);\r\n };\r\n xhr.send();\r\n },\r\n\r\n playVideo: function(url) {\r\n Ti.API.log(\"playVideo:\", url);\r\n \r\n Player.videoPlayer = Ti.Media.createVideoPlayer({\r\n backgroundColor: '#000',\r\n fullscreen: true,\r\n autoplay: true,\r\n url: url,\r\n scalingMode: Ti.Media.VIDEO_SCALING_ASPECT_FIT,\r\n mediaControlMode: Ti.Media.VIDEO_CONTROL_DEFAULT \r\n });\r\n\r\n if(OS_IOS) {\r\n Player.win = Ti.UI.createWindow({\r\n backgroundColor: '#000',\r\n modal: true,\r\n opacity: 0\r\n });\r\n }\r\n\r\n Player.videoPlayer.addEventListener('complete', function(e) { \r\n Player.close();\r\n });\r\n Player.videoPlayer.addEventListener('fullscreen', function(e) {\r\n if (!e.entering) {\r\n Player.close();\r\n }\r\n });\r\n\r\n if(OS_IOS) {\r\n Player.win.add(Player.videoPlayer);\r\n Player.win.open();\r\n }\r\n\r\n },\r\n\r\n close: function() {\r\n if(OS_IOS) {\r\n Player.videoPlayer.fullscreen = false;\r\n Player.win.close();\r\n } else {\r\n Player.videoPlayer.hide();\r\n Player.videoPlayer.release();\r\n Player.videoPlayer = null;\r\n }\r\n Player.isPlaying = false;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Player;\r\n{code}\r\n\r\n{code:title=controller/index.js}\r\nfunction doClick(e) {\r\n require('vimeo-player').play(\"123857657\");\r\n}\r\n\r\n$.index.open();\r\n{code}", "updateAuthor": { "name": "etruta", "key": "etruta", "displayName": "Eduardo Silva", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2015-08-17T13:53:45.000+0000", "updated": "2015-08-17T13:53:45.000+0000" }, { "id": "360065", "author": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It doesn't work on 4x versions of Android, only 5x and up.", "updateAuthor": { "name": "joshlewis", "key": "joshlewis", "displayName": "Josh Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-17T13:55:23.000+0000", "updated": "2015-08-17T13:55:23.000+0000" }, { "id": "360094", "author": { "name": "etruta", "key": "etruta", "displayName": "Eduardo Silva", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "This means that the videoPlayer does not work with Android 4.x? I tested with Android 4.4.2 and it works.", "updateAuthor": { "name": "etruta", "key": "etruta", "displayName": "Eduardo Silva", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2015-08-17T19:47:54.000+0000", "updated": "2015-08-17T19:47:54.000+0000" }, { "id": "360098", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-17T20:52:11.000+0000", "updated": "2015-08-17T20:52:11.000+0000" } ], "maxResults": 42, "total": 42, "startAt": 0 } } }