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,
Related
My project working fine on Galaxy s2 but on my nexus phone my open cv project is not running. The tutorial provided by open cv is running but some how it seems my project is not running and nexus is saying "It seems that you device does not support camera(or it is locked). Application will be closed. Can some one give some idea how to get rid of it .
Are you using Nexus tablet? you might be trying to access a specific camera in your code (i.e you might be trying to access back camera in nexus tablet) which does not exist.
Something like this will not work in nexus 7 tablet(older nexus 7 version)
cv::VideoCapture capture(CV_CAP_ANDROID + 0);
This is common problem with nexus 4 and kit kat (4.4). OpenCV doesn't support native camera for this system yet - try Java camera version instead, it should works.
EDIT:
If you want to solve this problem (I assume you have 4.4 Android) you have to rebuild camera_wrapper using Android OS sources. That's the way until next OpenCV official release.
I created an application which use Camera face detection to know if someone uses application.
I followed instructions of Google doc and it works on Galaxy Tab 2 with android 4.0 or 4.1.
I just installed it on a Galaxy Tab 3 with Android 4.2 and recognition does not work.
I haven't any exceptions but onFaceDetection is never called.
Is something changed in 4.2 ?
Thanks
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.
I'm using the setInt() method of RemoteViews to change the alpha of my appwidget's background. The documentation tells that the method is available since API level 3, unfortunately it fails on an Android 1.6 emulator and also on a Samsung Galaxy S device with Android 2.1-update 1. So, what Android versions currently support this method and should I use it at all, as it seems too risky to implement?
My code right now downloads an animated gif from a website, and since, as far as I know, webview and imageview doesn't support animated gifs and using BufferedInputStream and Movie.decodeStream along with a custom View to render it (this code runs in a seperate thread)
I have tested the code on the android emulator (1.6, 2.1, 2.2, 2.3.3), Xperia X8 with 2.1, ViewSonic viewpad with 2.2 and Galaxy S with 2.3.3 and the activity only crashes on the Galaxy S (after like 1 minute). On the other devices it's working just fine.
I've tried debugging the app on the Galaxy S and I get this message just before it crashes:
11-17 13:37:18.152: ERROR/(1161): Wink AGIF pDecInfo is Null or not avail
That's all I get when debugging :(
I've tried changing my code back and forth but I can't get it working. Anyone have any idea what's wrong?
We also have some problems with Samsung devices. I was told that Samsung heavily modifies original Android source code so they seem to introduce many bugs.