¿Cómo reproducir el enlace RTSP [transmisión en vivo] en Android?

I am trying to play RTSP live streaming url "rtsp://". But i am getting this error (1,-1).

estoy probando este codigo

VideoView myVideoView = (VideoView) findViewById(R.id.videoPlayer);
        myVideoView.setMediaController(new MediaController(this));

this code giving error(1,-1). I am unable to play this link.If anyone tell me idea to play this url.


preguntado el 09 de marzo de 12 a las 13:03

where have you set the rtsp link in your code ?? -

2 Respuestas

Roundabout suggestion -

  1. download the rtsp stream to a local filesink using VLC which has just been compiled on android.
  2. once the download is complete, simply play that file using the normal Intent field values for a local file and mimetype of mp4.

snip below should play what was downloaded.

new Intent(Intent.ACTION_VIEW).setDataAndType(Uri.parse("file:///mnt/sdcard/myfile.mp4"), "video/mp4"); 

VLC on android links: http://forum.xda-developers.com/showthread.php?t=1517415 http://code.google.com/p/android-vlc-remote/source/browse/AndroidManifest.xml

Get an rtsp link from any youtube vide - slightly involved process

You can stream just about any youtube video as RTSP if you do the following:

  1. Get the youtube video ID - like videoID=kgfctMNeDtg
  2. Get the youtube feed for the videoID
  3. Find the rtsp url for the appropriate youtube format . Formats 1,5 6 all have rtsp
  4. request the rtsp uri with an instance of HttpClient




respondido 29 mar '12, 16:03

I tried playing rtsp:// on VLC but was unsuccessful in doing so, here is the error I get

enter image description here

Try another link that works like rtsp:// (Some indian channel)

respondido 09 mar '12, 13:03

ya.. I am trying other RTSP file that are working fine.but, this url i am not able to play.tell me any suggestion about this url. This url not possible to play android phone ha???? try this one rtmp://flashmedia.nic.in:80/live/dd1 - Jeeva

Yup, I think the server is down for this stream so you cannot access it from any device, mobile or otherwise. That stream is not working either - soham

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.