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. Install Android on my pocket pc

Hi,

I'm new to Android & have heard its open source, but am not very clear
on a few things.

-Is it possible to download the sources & compile it for an Intel
Xscale processor as used by most pocket pc devices?

-If the above is true, is it possible to flash the device to Android
to make it the default OS?

I'd be interested in customizing the OS for HTC devices like the
Blueangel (XDA IIs) & Universal (XDA exec).

Thanks,
/xda


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

2. onTap display toast or message

Hello,

I looked for any information about onTap event processing for itemized
overlays in this group. There is a lot of useful information but I
could not find the answer to one question.

The tutorial by Mark Murphy on itemized overlays, http://androidguys.com/?p=1413

describes how to generate a Toast message whenever an onTap event
occurs. In his case, the custom itemized overlay activity is included
in the main activity. In my case, it is not. My custom itemized
overlay activity is included in the application package as a public
activity.

This means that the line

Toast.makeText(NooYawk.this, items.get(i).getSnippet(),
Toast.LENGTH_SHORT).show();

will not work "as is".

I have had trouble in correctly identifying the context for the Toast.
Attempts to use the main class' (the one calling the custom itemized
overlay class) context have not worked. I would appreciate it if
anyone could suggest how I could resolve this issue. Incorporating the
custom itemized overlay class in the main class is not a desirable
option.

Alternatively, I would appreciate any suggestions for generating a
display of the title and/or snippet information for markers on a map.

Thanks.

Alex Donnini

P.S. the onTap event works fine (Log.i statements in the onTap method
display the correct information for each marker tapped)
--~--~---------~--~----~------------~-------~--~----~

3. How to get attributes of KeyboardView?

4. Compiling and running modified code

5. How to pass User created object between two Activity in same Application?

6. Issue creating new service as part of framework

7. URL commands when calling Youtube through Intent