I have a videoview that displays content from the web.
When I play on the nexus 7 with Android 4.2 it works fine, but when I play it on the GS3 ir return an error 1004 IO Error.
Does anyone has any idea why is this happening?
If you need the code I will post it here.
Thanks
I had the same issue. I was trying to stream an Audio and play it in my application and I had the same error only on Samsung devices. I think they have modified the Android Media Player core and that caused some problem.
What I did for a solution is, I'm checking if the manufacturer of the device is Samsung and pop a dialog window saying that your device does not support streaming. And I download the audio and then play downloaded audio.
I needed an urgent solution and couldn't find a better solution.
Hope it helps.
Related
I am running application on Samsung Galaxy Tab 2 10.1, which plays HLS streams, encrypted by Verimatrix. I am using 3rd party player integrated in my app. Streams switch quality among three profiles,
<= 1MBps,
<= 1.6MBps
and
<=2.6MBps.
Playback is OK at low and medium, but at high, occasionally, tablet freezes completely and has to be rebooted manually. Anybody got similar experience? Is this sign of high demands of application on device? I am trying to find out root cause. Any hint appreciated. Thanks.
Well, I got this problem on my Galaxy Tab 7 too. I read on some sites that the problem is on HLS android implementation.
The following links talks about Android's HLS problems.
The Pain of Live Streaming on Android
http://www.jwplayer.com/blog/the-pain-of-live-streaming-on-android/
The Definitive Guide to HLS
http://features.encoding.com/http-live-streaming-hls/
I have android app and video file which is bufferring and running from my application. I have tested that in samusung galaxy s2 and samsung galaxy tab. It works perfectly, but when i try that in karbon A21 and HTC Evo it says "Cannot play video sorry, this video cannot be played". Can somebody help me to understand the issue.
It's all related video codec format support compatibility. you didn't specify your video file extension. mp4 format supports most of all android devices.so, check any mp4 format in all android devices including your karbon A21 and htc devices. good luck!!!!!!!!
I am working on playing a video in my application, and I am observing some strange results in doing so. Videos that I am trying to play are on server and I have to get them to run android's native videoplayer.
I have tested the results on several devices and it is found that video runs on devices having OS version greater than equal ton 2.3.3 but does not run on others, showing error (1, -1). Now my question is that either the later OS versions have some extra Video codecs and format support and that is because the video gets played on them or it's something else? Why so is this error on few devices not on all?
Devices on which Video Works fine in native videopalyer:
Samsung Google Nexus with OS 4.0.1
Samsung Galaxy S with OS 2.3.3
Devices on which does not get played:
HTC-Desire with OS 2.2
Samsung Galaxy S with OS 2.2
Any help about the issue is always appreciated.
This error may occur due to many reasons. Issue might lie videoplayer, as well source from where you are reading the video, Is video coming from HTTp server or RSTP server...any of these can be the reason. You'll have to check accordingly. In our case, we solved it by using Video View and also made changes to URL to get it played.
I'm using the Mediaplayer (android.media.MediaPlayer) to play mp3-files in an app I'm developing
It works flawlessly in emulators from and above android 2.3. I've also tried it on two devices (2.3 and 3.2) and it works great.
However, in an emulator with 2.1 the audio crackles.
And in an emulator with 2.2 the audio is chopped off before it's finished (plays everything but the last half or whole second).
Is this a know problem for 2.1 and 2.2? And does it only affect the emulator but not the actual devices (which I've not had a chance to test on)?
Most probably it is happening because that the codecs which the older emulator is using in your case is not decrompressing the audio fast enough (understandable, as it is an emulator). I have worked with MediaPlayer from 2.1,2.2 and learnt that it is best not to rely on an emulator's performance. Go for a real device.
is there anyway to update the media drivers separately from the rest of the OS?
I updated my X10 Mini Pro from 1.6 to 2.1 and the media player doesn't play any sound. BUT you can see the time counter running fast forward... This is really crazy! The same with video player, even youtube. You can see the videos in Fast Fwd, no sound whatsoever.
Any ideas? Thanks a lot!
I am using the code available here VideoView Example. This code runs properly on Android emulator 1.6 but not on 2.1.
In 2.1 it only plays the audio and not video. I have gone through several other threads where this issue has been mentioned. I will like to know whether this problem is limited to emulator only or the devices also have the same problem.
Regards
Sunil
Emulators will have great difficulty playing back video, due to speed. The emulator does not have hardware acceleration -- combine that with converting ARM opcodes to x86 on the fly, and the emulator cannot keep up. I have a quad-core 2.6GHz desktop, and I can only occasionally get the emulator to play back video.
IMHO, to work with video, you need a device.
Try it in real android device,because emulator can not play video