How can I use VideoView to streaming without buffering?

by Kelvin » Wed, 14 Apr 2010 03:23:51 GMT


Sponsored Links
 I have a question.
When I use the VideoView to play the RTSP streaming, the VideoView
will buffering some cache buffer.
Is there any method to tell the VideoView DON'T buffer?

My code:
String VideoUri = "rtsp://192.168.5.121:6666/live/h264";
mVideoView = (VideoView) findViewById(R.id.video_view);
mVideoView.setVideoURI(Uri.parse(VideoUri));
mVideoView.start();

Is anybody help me?
Thanks.

--



How can I use VideoView to streaming without buffering?

by MobDev » Wed, 14 Apr 2010 19:32:49 GMT


 well most of the time buffering is just part of streaming...
it's there so that a user will get a more seamless playback of the
video/audio...
The flipside is that it starts a little later because it has to buffer
beforehand, and when it has enough data to play a specific amount of
time seamlessly it will start..
Cutting out the buffering might mean frequent hickups during play...
The first case might be acceptable for users (buffering) the second
one definitely isn't (frequent hickups)...




--


Sponsored Links


How can I use VideoView to streaming without buffering?

by Chirag » Fri, 23 Apr 2010 08:04:55 GMT


 When you want live video streaming, second case is fine. Is there any
way to reduce buffer size???





--



Other Threads

1. What uniquely identifies an application?

> So now i want to create two applications with intent

Make your reusable code take resource IDs as parameters to their APIs.

Look at Android itself: it is reusable, yet it does not have the problems
you describe. Why? Because resource IDs are passed in as parameters (e.g.,
setImageResource() does not assume the resource; it takes the resource ID
as a parameter).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~

2. What is the protocol version of GPS nmea?

Hi,
Is there any body knows the version of GPS nmea? 2.1 or 3.0?

--~--~---------~--~----~------------~-------~--~----~

3. How to get OpenGLContext class in Android 1.5 SDK

4. Survery - does anyone purchase apps on alternative markets?

5. Custom drawable shadow - how to make it (light-)grey?

6. Marker Info Window

7. For Orkut, Facebook,myspace users and windows Tips and tricks