Reputation: 1155
I am trying to play RTSP live streaming url "rtsp://164.100.51.207/broadcast/DDLive". But i am getting this error (1,-1).
I am trying this code
VideoView myVideoView = (VideoView) findViewById(R.id.videoPlayer);
myVideoView.setVideoURI(Uri.parse(url.toString()));
myVideoView.setMediaController(new MediaController(this));
myVideoView.requestFocus();
myVideoView.start();
this code giving error(1,-1). I am unable to play this link.If anyone tell me idea to play this url.
thinks.
Upvotes: 3
Views: 7739
Reputation: 6289
Roundabout suggestion -
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:
Details:
http://snipplr.com/view/63341/youtube-rtsp-cli-request--audio-track-only-p2/
http://snipplr.com/view/57846/curl--rtsp-to-get-sdp-descriptor-for-media-stream/
Upvotes: 2
Reputation: 4970
I tried playing rtsp://164.100.51.207/broadcast/DDLive on VLC but was unsuccessful in doing so, here is the error I get
Try another link that works like rtsp://217.146.95.166:554/playlist/ch12zqcif.3gp (Some indian channel)
Upvotes: 2