Android Video Surveillance Buffering

I wrote a video player that plays video from a website. My video player is indeed a VideoView gadget from android.

The videos play normally when I’m on the wifi network, it’s not so if I switch to 3G as expected: D. I want to increase the stream buffer, it seems that VideoView transfers the stream video to 8% of the clip size.

When I press the play button, the streaming still goes on, but it keeps that percentage distance ... and if I press the pause, the streaming stops.

Can I increase the stream length and make streaming video while paused?

Thanks!

+4
source share
1 answer

You could read the stream in a local file yourself and point it to VideoView. However, I'm not sure how much you are allowed to store. In addition, VideoView will see the fixed size of the file it was pointing to. You could create the file in the correct size, but then you will need to make sure that the video is not readable outside of the cache.

0
source

Source: https://habr.com/ru/post/1340289/


All Articles