'MediaPlayer Error Code 4003 extra 0' on Leanback Exoplayer Library - android

I'm using
implementation 'com.google.android.exoplayer:extension-leanback:2.18.2'
for VOD playing in Android TV. But facing getting Media error code 4003 in some of device like MI-TV
**All device doesn't throw the exception . Checked Samsung TV and Emulator TV ,it's worked well but in some MI-BOX this exception is occurring **
How do i fix it?

Related

App cannot run on Android L with LogCat Error Message

I've updated my Nexus 7 (2013) to Android L preview, and found that one of my apps cannot be launched anymore with the following LogCat Error msg:
E/WindowState(643): getStack: Window{33f867f8 u0
Starting com.xxxxxx.ooooo} couldn't find taskId=151
Callers=com.android.server.wm.WindowState.getDisplayContent:730
com.android.server.wm.WindowStateAnimator.stepAnimationLocked:273
com.android.server.wm.WindowAnimator.updateWindowsLocked:254
com.android.server.wm.WindowAnimator.animateLocked:550
Also note that the app launch animation would be played but then the screen would go back to the previous screen without any user facing error message, so I've only got this error dialog to go on and am hopelessly lost atm. Any help is greatly appreciated.
Edit:
VLC and a few video players that may have used VLC library have the same issue, so I am guessing it's something with VLC's native library given how Android L has tightened up JNI a bit, but I am lost at to where to start modifying given the opaque log message :-/

onTimedText not called for Android 4.1.1

I am trying to add a timedTextTrack to the MediaPlayer using mediaPlayer.addTimedTextSource and mediaPlayer.selectTrack. I am setting a onTimedTextListener to the MediaPlayer as well.
On all other devices with Android version higher than 4.1.1 it is working and I can display the text, but when I try it on the Samsung Tablet GT-P5113 (Android 4.1.1) I get the onTimedText event only once with a null text. While the official documentation is saying that TimedText is supported with these devices.
Does any one know about this issue?
Thank you,

VideoView stop playing video

I have created an app for Android 4.0.3 (Samsung Galaxy Tab 10.1")
The app play an mp4 video file all the time in full screen mode.
When the video stop(finish), the app start it again from the beginning.
Now the problem is that after 15 minutes I got an error like "cannot play this video"
So I compiled the same app for Android 2.0.3 for my HTC Desire Z and works great, without any problem.
So please help me to figure out where is the problem here?

HTML5 <video> Element Won't Work on Android

I'm building a mobile site and haven't been able to get a HTML5 video element to work on my Samsung Galaxy S with Android 2.2.
The embedded video element at http://mediaelementjs.com/ DOES work.
However, the video element I created at http://mattjennings.net/zzz/video-test/test.php DOESN'T work. As you can see I'm also using code from Media Element JS Listed above.
I've spent hours trying to solve this problem including converting the test.mp4 file in my example link above to an "Android ready format" with Videora Android Converter.
are you trying to paly in video in emulator or in device. If it is not playing in the emulator it is the problem of video resolution. Best to try video of low resolution. I have gone through same problem.
Please go through the below url it may help you
The Android browser (before 2.3) requires specific handling to run the video element.
I ended up using HandBrake (https://handbrake.fr/), which is free and open source software, to create MP4 files for a website that could play on my Samsung Galaxy S3 phone that runs Android 2.2.
I also used code from http://www.mediaelementjs.com/ to make this work.

Error code 1, -110 in media player android

I got the MediaPlayer error code as (1,-110) on BeagleBoard Hardware running ICS.The code runs fine on android tablets with ICS but I get a dialog box as "Sorry,this video cannot be played" error on BeagleBoard only.Any suggestions.
This is a time out error from the MediaPlayer:
http://developer.android.com/reference/android/media/MediaPlayer.html#MEDIA_ERROR_TIMED_OUT
Also, it may happen with an issue with Samsung firmware on Android 4.1.2, I've seen it in Galaxy S2 mini and Galaxy S3. Take a look here:
https://stackoverflow.com/a/18378273/3032209
You could solve it if you play the file it with another library, which will have the adequate codecs, like aacdecoder-android
I know my answer is too late to your question and I think you were able to fix this problem by now, but if not and for those people who are struggling with the Media Player Error (1, -110) (like I did the whole day today, Android HTC Desire X Jelly Bean 4.1.1), maybe this is the solution for you:
Just reboot your android (or close all the apps, which are using the Media Player).
In my case it was not a programming error, I just had to many apps open using the Media Player Instance, which led to that time out and I could not use it anymore.

Categories

Resources