Android VideoView freeze - android

I have a problem that I can only describe: I have an App which plays two different Videos in a VideoView when certain buttons are pressed. I am now testing the app on android 2.3. One of the videos is around 100 MB and the other one is around 6 MB. I believe that the issue happens when I'm playing the big file, but I'm not sure.
The issue is that at some point the image shown in the VideoView freezes. From this time on every VideoView (even of other Apps) shows the same frozen video frame. It stays like this until I reboot the phone.
Does anybody has an Idea whats wrong?

Related

Android Video on Chromebook dropping First Few Frames

I have an app which plays a lot of video files. It's been all good on every phone and tablet I've tested on. I just tested on an Acer Chromebook and the first few frames (maybe up to a 1/4 second) are being dropped on all video files, so the video appears to start just slightly beyond 0. Some of the videos have audio that starts immediately and so it's obvious to the user that the video is clipped at the start. I'm wondering if anyone else has seen this issue, maybe on a Chromebook or other device and if there is some simple way to deal with it?
There is absolutely nothing fancy about my code. I'm using VideoView, preload the video with setVideoURI(), then call videoView.start() on a button press.
Thanks!
This problem only appears if I make a call to seek(0). So rather than doing that to replay the video I have to load the video each time it's requested. That workaround resolves the problem.

Youtube API Video stops when not on full screen

I'm using the youtube API and I did the instructions from this tutorial:
http://javatechig.com/android/youtubeplayerview-example-in-android-using-youtube-api
All is well, but when I'm not on full screen, the video keeps stopping every second. It's like it plays for 1 second, stops, then I have to press the play button again, then it will stop again after 1 second. On full screen, it plays perfectly. I'm 100% sure it's not the internet connection because I tried it with many connections and it ONLY plays properly on full screen. Any idea how I can fix this?
EDIT: It's not the phone either, I tried it on a Nexus 5, Sony Xperia z1, HTC One, a number of Samsung Galaxies. I rechecked the code multiple times, it's exactly the same, even did a copy paste of the tutorial. It still stops when it's not on full screen. I only used the tutorial, since I wanted to make sure it works before embedding it to my main project.
I solved my problem by removing the padding in the youtube video player. It now plays perfectly regardless of orientation.

If Nexus-10 can't play more then 3 VideoView playing at the moment at screen - otherwise Nothing - Black View (files from SdCard)

Encountered the BIG problem with VideoView Nexus 10. Looks serious.
I wanted to create ListView with Videos that play simultaneously (with no sound). So problem: single VideoView plays but when there more then 3 (four VideoViews) play at the moment - nothing - black View (4th).
Even more ! If you place Video at /sdcard/ After you encounter the problem NO MORE VIDEO (from SdCard) CAN BE PLAYED AT THE DEVICE AT ALL until reboot. Yep! Other Application can't play video from SdCard any more, too!

Some videos causing android media player to crash

While testing an app that I was making to play videos in a loop from a playlist using the MediaPlayer, I found that one video caused my app to freeze. It didn't force close or anything just froze. After I took the video out it ran fine. But the video didn't cause it to crash every time. I was stability testing the app and it would run for at least 5 hours so it played the video a number of times before freezing. After I took out the video and put in different ones it worked fine (some were bigger and I added more than one). All the videos I was testing were mp4's and there was nothing noticeably different about the one that was crashing.
Any ideas why the video was causing the crash? It's not a huge issue but it would be nice to know so I could maybe check for it before adding a video to a playlist.

Video plays on part of the screen after screen unlocked

I am using VideoView for playing video with given URL. I want video full screen. Everything is working well. But am facing strange problem. When you turn off screen and then unlock it, video plays on part of the screen.. approximately 3/4th area of the screen.. I searched a lot but still unable to find solution.
Just FYI, my whole application works only in portrait mode and only video plays in only landscape mode. Don't know whether this is the cause or not. But this should not be.
Please help me. Thanks in advance.

Categories

Resources