I tried setDataSource()
in MediaExtractor
class but it doesn't work with RTSP path. I can use the same path with MediaPlayer
class and it works but it is very important for me to use MediaCodec
class instead. I think Android doesn't have any RTSP API I could use nor I can find any RTSP libraries for Android.
Is there a relatively easy way of feeding video stream from RTSP server into MediaCodec
class?