Hi,

Thanks for your answer. Well I did not tried a VideoView but the MediaPlayer
and a SurfaceView as given by ApiDemos. However I consider the code as good
as it works for RTSP stream on WiFi.

What kind of stream do you open from your VideoView? are you able to open
RTSP stream through 3G networks?

There must be a universal method that works on both WiFi and 3G; there are
so many applications like those weather applications that propose forecast
videos.

Thierry.

2010/12/20 andy zhao <zxganga...@gmail.com>

> Hi,
> I don't know which method or class you use to play the audio or video
> stream. I used VideoView class to do that successfully.
>
> 2010/12/20 Thierry Legras <tleg...@gmail.com>
>
>> Hi,
>>
>> I would like to stream video files to Android device, and intend to
>> integrate playback in my application.
>>
>> I first tried to use flash video streaming, which works pretty nice on my
>> HTC Hero which integrated flash player, but now on Floyo ROM it does not
>> work any more. I guess HTC player is more complete than froyo 2.2 flash
>> support.
>>
>> Then I tried to stream with VLC software using RTSP and it appears to work
>> only with WiFi. On 3G, I see on the streaming PC that the stream is sent,
>> but nothing is displayed on the Android device, whereas it works on WiFi.
>> I found this very interesting page from "VLC stream & convert" developper
>> which seems to show that this method is hazardous. Indeed the proposed test
>> does not work at all on my device/operator.
>> http://traveldevel.com/vlc-stream-convert/streaming-over-3g
>>
>> Finally I am trying to stream over HTTP. I made it work (WiFi AND 3G) for
>> audio stream only, but when I try to stream audio+video, it does not work at
>> all (WiFi nor 3G). Of course I set the bitrate and screen size to low so it
>> is supposed to work at least in WiFi. I tried several combination
>> codec/muxer with no luck.
>>
>> So anyone knows if it is ever possible to stream video over HTTP? if yes,
>> any idea which codec/muxer is supposed to work?
>>
>> Or at least what is the most universal and/or recommanded way to stream
>> video to android device??
>>
>> Thanks for any help,
>>
>> --
>> Thierry.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thierry.

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

Reply via email to