*Description:*
Video playback on Android L seems broken with SDK 3.5.1 (and 4.0.0RC2). MP4 files do not show video and audio output.
*How to reproduce:*
Run the attached app.js on a Android L device. Code is taken from
http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Media.VideoPlayer.
*What should happen:*
Video should be played after the app is deployed.
*What does happen:*
Blank/Black VideoPlayer, no video is played, no sound.
After several seconds the console shows (both of them!):
[ERROR] : MediaPlayer: error (1, -2147483648)
[ERROR] : MediaPlayer: Error (1,-2147483648)
Nothing more changes.
Setting autoplay to false and adding a call to .play on the VideoPlayer object creates this log message:
[WARN] : VideoPlayerProxy: (main) [101,101] Player action ignored; player has not been created.
*Where does it work:*
The 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.
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? Sorry for the inconvenience!
This issue is reproducible . Mp4 flies don't play on android Lollypop. Environment: Appc Studio : 4.0.0.201505120319 Ti SDK : 4.0.0.v20150512005012, 3.5.1.GA CLI : 4.0.0-beta8 Alloy : 1.6.0-beta4 MAC Yosemite : 10.10.3 Appc npm : 0.3.55 Appc CLI : 0.2.282 Node: v0.10.37 Android : 5.0.2 , 4.4.4
I'm able to reproduce this problem Android 5.1.1 Titanium SDK 3.5.1 From the logs when I open the VideoPlayer: 06-09 21:17:46.216: E/ExtMediaPlayer-JNI(6914): QCMediaPlayer could not be located.... 06-09 21:17:46.216: E/MediaPlayer-JNI(6914): QCMediaPlayer mediaplayer NOT present .... 06-09 21:18:16.786: E/MediaPlayer(6914): error (1, -2147483648) 06-09 21:18:16.787: E/MediaPlayer(6914): Error (1,-2147483648) And the VideoPlayer closes Is there any ETA on this issue? This is very critical for my video app
I had the same issue with in my application. Android 5.1.1 / Ti SDK 3.5.1 The video doesn't start playing. The core functionallity of my app is video reproducing, please fix this issue!
Same issue here. Seriously no one is working on this???
Really? The remote video sample in the Kitchen Sink app doesn't work for me using the nightly build from June 16...
Tested against 4.1.0.v20150618212032 and it has not been fixed {quote} 06-19 12:05:48.134: W/VideoPlayerProxy(476): (KrollRuntimeThread) [104191,255306] movieControlMode is deprecated. Use mediaControlStyle instead. 06-19 12:05:48.134: I/Timeline(476): Timeline: Activity_launch_request id:com.test time:85199265 06-19 12:05:48.230: W/VideoPlayerProxy(476): (main) [96,255402] Player action ignored; player has not been created. 06-19 12:05:48.231: W/VideoPlayerProxy(476): (main) [1,255403] Player action ignored; player has not been created. 06-19 12:05:48.364: E/ExtMediaPlayer-JNI(476): QCMediaPlayer could not be located.... 06-19 12:05:48.364: E/MediaPlayer-JNI(476): QCMediaPlayer mediaplayer NOT present 06-19 12:05:48.365: D/MediaPlayer(476): Couldn't open file on client side, trying server side 06-19 12:05:48.377: D/MediaHTTPConnection(476): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.1.1) 06-19 12:05:48.380: D/MediaHTTPConnection(476): proxy null port 0 06-19 12:05:48.496: I/Timeline(476): Timeline: Activity_idle id: android.os.BinderProxy@33198afa time:85199627 06-19 12:05:50.985: D/MediaHTTPConnection(476): proxy null port 0 06-19 12:05:51.337: W/MediaHTTPConnection(476): readAt 31019992 / 32768 => java.net.ProtocolException 06-19 12:05:51.353: E/MediaPlayer(476): Should have subtitle controller already set 06-19 12:05:51.439: D/MediaHTTPConnection(476): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.1.1) 06-19 12:05:51.442: D/MediaHTTPConnection(476): proxy null port 0 06-19 12:05:51.629: W/MediaHTTPConnection(476): readAt 292920 / 32768 => java.net.ProtocolException 06-19 12:05:51.730: D/MediaHTTPConnection(476): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.1.1) 06-19 12:05:51.732: D/MediaHTTPConnection(476): proxy null port 0 06-19 12:05:51.897: W/MediaHTTPConnection(476): readAt 293432 / 32768 => java.net.ProtocolException 06-19 12:05:52.090: E/MediaPlayer(476): error (1, -1004) 06-19 12:05:52.091: E/MediaPlayer(476): Error (1,-1004) 06-19 12:05:52.091: D/TiVideoView8(476): (main) [3860,259263] Error: 1,-1004 06-19 12:05:52.390: E/MediaPlayer(476): error (1, -1004) 06-19 12:05:52.417: I/Timeline(476): Timeline: Activity_idle id: android.os.BinderProxy@163007b0 time:85203548 {quote}
PR: https://github.com/appcelerator/titanium_mobile/pull/6928 Test code in PR. Test with an Android 5.1.1 or above.
Any updates? Doesn't work on my Nexus with 5.1 (Lollipop), video never loads, using the 3.5 AND 4.0
[~josh.lewis] Is there a sample link that you could provide that you are using this with?
This one loads fine http://s3.amazonaws.com/playbackacp.com/2013MOC/10.Reynolds.mp4 This one does NOT http://s3.amazonaws.com/playbackacp.com/865/challenge_2/865-01-05.mp4 Using the regular player sample code, nothing fancy. Both work in iOS
I don't really know what that means. Are you saying track down the java class everytime I compile and change it somehow?
@Ashraf Abu Another sample link that doesn't work: http://108.59.9.98/big_buck_bunny.mp4
[~davidbenko] Will look into it. Thanks. [~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.
Just an update for watchers, this ticket was resolved with the PR: https://github.com/appcelerator/titanium_mobile/pull/6928
Thanks @Ashraf Abu! Any 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?
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/) If 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.
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. https://s3.amazonaws.com/playbackacp.com/865/challenge/865-01-03.mp4
[~joshlewis], The url works for me with the latest 4.2.0 SDK (master) which is not out yet. Which titanium SDK & android version you checked it with ? Tested with these components: Appc Studio : 4.1.0.201507071122 Ti SDK : 4.2.0.v20150710092422 Ti CLI : 4.0.1 Alloy : 1.6.2 MAC Yosemite : 10.10.4 Appc NPM : 4.1.0 Appc CLI : 4.1.0 Node: v0.10.37 Nexus 5 - Android 5.1.1
My mistake, it did work on the emulator. Will this not work on Kitkat, since its the most popular right now? Lolipop is only at about 2%, KitKat is almost 40%.
Tested with Galaxy S5, SM-G900F that is on 4.4.2 (KitKat). Works fine. This fix was for Android Lollipop.
Verified the fix. Tested with the code below with multiple url's:
The video's play fine on android lollipop. Closing. Environment: Appc Studio : 4.1.0.201507071122 Ti SDK : 4.2.0.v20150710092422 Ti CLI : 4.0.1 Alloy : 1.6.2 MAC Yosemite : 10.10.4 Appc NPM : 4.1.0 Appc CLI : 4.1.0 Node: v0.10.37 Nexus 5 - Android 5.1.1, Android 5.0 Samsung Galaxy S4 - Android 4.4.2
Verified the fix. In SDK 4.1.0.GA Tested with the code below with multiple url's:
The video's play fine on android lollipop. Environment: Appcelerator Studio, build: 4.1.0.201507071122 Ti SDK : 4.1.0.GA CLI : 3.4.1 Alloy : 1.6.2 MAC Yosemite : 10.10.4 Appc NPM : 4.1.0 Appc CLI : 4.1.0 Node: v0.10.37 Nexus 7 - Android 5.1.1, Android 5.0
In my tests the error still happens in Android 4.2.2. (Genymotion Emulator: Motorola Moto X - 4.2.2 - API 17 - 720x1280) Using the sdk build: 4.2.0.v20150815030432 The link to a alloy project is here: https://www.dropbox.com/s/rocwpcy4jvnwzhd/vimeoPlayer-test.zip?dl=0
It doesn't work on 4x versions of Android, only 5x and up.
This means that the videoPlayer does not work with Android 4.x? I tested with Android 4.4.2 and it works.