How to use MediaCodec to decode data from RTSP server?
问题 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? 回答1: No easy way. I ended up using this project: https://code.google.com/p/android-rtsp