Search code examples
androidandroid-ndkffmpegrtsp

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?


Solution

  • 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.