How can i play rtsp video from wowza server?

I have an rtsp url from Wowza Media Server 2 Perpetual 2.2.4.07
How can I play it in the application?

+4
source share
2 answers

Alternatively you can use VideoView

videoView.setVideoURI(Uri.parse("rtsp://server/track.mpg")); 
+1
source

This is how you launch a media player with a data source. Keep in mind that Android only supports some of the audio / video codecs listed here .

 MediaPlayer m = new MediaPlayer(); m.setDataSource("rtsp://rtsp.yourserver.com/stream.mp3"); m.prepare(); m.start(); 
+3
source

Source: https://habr.com/ru/post/1415433/


All Articles