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. OpenGL ES Java binding not supported on Nexus One + Android 2.2?

My Nexus One is updated with Android version 2.2 (build number FRF91).
However, when I try to use the OpenGL ES Java binding, I see the
following:

D/libEGL  (15206): loaded /system/lib/egl/libGLES_android.so
D/libEGL  (15206): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL  (15206): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL  (15206): loaded /system/lib/egl/libGLESv2_adreno200.so
E/libEGL  (15206): called unimplemented OpenGL ES API
E/libEGL  (15206): called unimplemented OpenGL ES API

The last two lines are frustrating.

To state the obvious, I have set up my manifest file:
<uses-feature android:glEsVersion="0x00020000"/>
<uses-sdk android:minSdkVersion="8"/>

I use GLSurfaceView and have only one line in onDrawFrame:
        GLES20.glCreateShader(GLES20.GL_VERTEX_SHADER);

What's that I'm really missing something here?

dp

-- 

2. How to make Rating Bar small and if I click it open a Dialog to change

I've tried using

style="?android:attr/ratingBarStyleIndicator"

but that makes it non interactive, can I wrap it or something to make
it so you can click the bar and it opens a Dialog with a full Rating
Bar that can be changed?

The large one is just huge for the display I'm trying to achieve.

Thank you,

-- 

3. Apps with > 1 million downloads

4. How to stop Android with the shell ?

5. regarding parser node

6. Market di x10 mini hilang

7. bitmap from a linear layout