Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Android natively play udp / RTP /RTSP Streams?

I am a bit confused, is it possible to receive UDP / RTSP Streams with the Android SDK? I've searched for some solution, but obviously they are just forwarding the request to the android native player or vlc. I would like to playback a video-feed in a surface-view for example.

Is it possible to receive streams without using third-party api's like ffmpeg?

like image 455
user1767754 Avatar asked Dec 03 '25 09:12

user1767754


1 Answers

Yes, you can use e.g. the android.media.MediaPlayer class to do this. See http://developer.android.com/guide/topics/media/mediaplayer.html for more information about how to do it.

like image 94
mstorsjo Avatar answered Dec 04 '25 22:12

mstorsjo