No problem on youtube streaming on a HTC device.

      VideoView video = (VideoView) findViewById(R.id.video);
      video.setVideoURI(Uri.parse("rtsp://gg.rtsp-youtube.l.google.com/
CiQLENy73wIaGwkmhu4NTf6vwRMYESARFEgGUghzdGFuZGFyZAw=/0/0/0/video.
3gp"));
      video.start();



On Aug 10, 11:59 am, Borut <borut.daga...@gmail.com> wrote:
> Hi
>
> I have difficulties with rtsp streaming in MediaPlayer.
> The code is quite straightforward:
>
>                 android.media.MediaPlayer player = new 
> android.media.MediaPlayer();
>                 player.setDataSource("rtsp://stream.xxx.xxx.xxx/link.sdp"); 
> //this
> link is not alive, only for demo
>                 player.prepare();
>
> Prepare() throws an exception:
> 08-09 09:54:20.156: ERROR/PlayerDriver(35): Command PLAYER_PREPARE
> completed with an error orinfoPVMFFailure
> 08-09 09:54:20.168: ERROR/MediaPlayer(396): error (1, -1)
> 08-09 09:54:20.198: WARN/System.err(396): java.io.IOException: Prepare
> failed.: status=0x1
> 08-09 09:54:20.218: WARN/System.err(396):     at
> android.media.MediaPlayer.prepare(Native Method)
> ....
> ....
> ....
>
> Has anybody else faced similar problems with MediaPlayer on android
> 1.5 (emulator and G1 developer'sphone)?
>
> btw: rtsp link works ok, cause I have tried it also from the web
> browser in android, and it plays well.

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

Reply via email to