quill wrote:
> Anybody help?
> 
> On 5月13日, 下午5时01分, quill <[email protected]> wrote:
>> Hi all,
>> When I am  downloading a video from internet,  I want to play the
>> video, does Android support this? How can I do it?

Yes, Android supports streaming video. You "do it" by writing an Android
activity that uses either VideoView or a combination of MediaPlayer and
a SurfaceView. Your video has to be in one of the supported formats:

http://developer.android.com/guide/appendix/media-formats.html

and, at least for MP4 files, they have to be "safe for streaming":

http://groups.google.com/group/android-developers/browse_thread/thread/58967fb5c0fc975e/f7cd877afb7f7cb6

Here is a small sample project using VideoView, though for a local MP4 file:

http://github.com/commonsguy/cw-advandroid/tree/master/Media/Video/

Here is a larger sample project using MediaPlayer and that has been
tested for use with streaming video:

http://github.com/commonsguy/vidtry

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Beginning Android 2_ from Apress Now Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to