How to restrict buffering in video steaming in android - android

I want to restrict buffering after pausing a video in android. When I pause the video player, the video stops but buffering does not. It continues to consume data. I want to stop data to be consumed.
Thanks in advance.

With a standard mp4/webm, you can’t. It’s totally up the the browser. If you use fragmented mp4 and feed the buffer via MSE and Ajax, you can do whatever you want. But it’s a thousand time more work on your part.

You can't skip buffering it depends on the network

Related

How can I monitorize the buffer of an embedded YouTube video on Android?

First of all, sorry for my poor English.
I am developing an application to monitor and get statistics on youtube videos played. I have developed an application on Android withit an embedded Youtube video player and I want to get all events that happen during the video is playing. I know how to get some events such as when it has been stopped, when it is buffering or when it stops buffering.
The problem is that it would be very interesting for me to get some statistics about the bytes that are loaded in the buffer everytime I check it but I don't know how to do that. I have checked the youtube player API and I know that it is possible when you use Javascript but the API that they offer for Android doesn´t have this option.
Please do you have any idea about how I can monitorize the buffer during a video is playing?
Thank you!

Adaptive streaming - smoothstreaming doesn't works

From documentation: "Adaptive Streaming - Automatically adapts to either congestion or bandwidth availability". But this works only when player starts (I use VideoView). If the intrenet speed falls while playing video - nothing happens but it is preferable that player switch video quality base on curren internte speed. So, questions:
Does android video player supports switching video quality in real time while playing video?
If yes, how to implement this?
Thank you for your attention.
Update:
For example Youtube google tv app. If bandwidth changing while playing video, player automaticaly switches to appropriate video quality without any delays.
What I have to do to make it work? I am using VideoView and it is works only when I start player.
Thank you.
Typically you would implement your own subclass of the VideoView that utilizes some form of QoS to monitor network bandwidth. If you are working on a Google TV application you can use the GtvVideoView (which supports smoothstreaming). To understand more about this you can read up on it here: https://developers.google.com/tv/android/articles/hls?hl=en

Video streaming on android phone

What is the best API for video streaming on Android? The Video is basically MPEG 2, kept on server, I want to stream to my Android phone which is having the decoder and our own player.
(decoding is happening on the phone itself).
The requirement is the delay should be as minimum as possible for smooth decoding and play back.
What about Gstreamer, is it a most efficient way?
Any suggestions?
Rgrds,
Heshsham
may example given at http://code.google.com/p/html5webview/source/checkout helps you

Live streaming is not continous in my application using NexPlayer

Live streaming is not continuous in my application using NexPlayer. It takes around 10 secs of buffering. What I want is to have a large buffer initially but once streaming starts then buffering should happen in the background, and streaming will be going on meanwhile. Is this possible using async task? Has anyone worked on NexPlayer stream video? Please let me know, as it is very critical for my application.

Reduce video buffering

I'm playing video on Android using media player via RTSP. The player takes about 12s to buffer before it starts playing. Anyone know how I can convince the player to buffer less? I have full control over the RTSP server and the SDP it returns.
As per usual, as soon as I decide I should ask a question I work out the answer. I have a line "b=AS:91" in my SDP. If I reduce the number the amount of buffering decreases - so b=AS:2 gives about 4 or 5s buffering.

Categories

Resources