how to play rtsp url in android ?
Asked
Active
Viewed 1.3k times
1 Answers
6
you can use either MediaPlayer
or VideoView
for this,it will not work in emulator
you can do like
mediaplayer.setDataSource(String RTSP); // if you are using mediaplayer
or
videoView.setVideoURI(Uri.parse("rtsp://...../file")); // if you are using videoview
both methods u can tryout

HforHisham
- 1,914
- 1
- 22
- 34

evan
- 1,120
- 4
- 13
- 32
-
That's because that link is invalid. – Cipi Sep 29 '11 at 14:25
-
What about RTP/UDP ?! I'm using this https://github.com/Elbandi/droidtv , And can't play – Dr.jacky Sep 30 '15 at 12:10