RTSP client in android

android, c++, client, rtsp

Solution

You may or may not know this, but Android has built in support for RTSP using the VideoView.

http://developer.android.com/reference/android/widget/VideoView.html

This may cut down on your development time...or it may be totally useless if you're trying to roll your own RTSP stack.

Problem

I am writing a RTSP client in Android. I am able to receive the Responses for all the requests i.e., - DESCRIBE it sends back the 200 OK - SETUP with transport: RTP/AVP:unicast:client_port=4568:4569 got the 200 OK Message back - Sent PLAY, and got the OK Message After that how to get the audio and video frames? I have searched on blogs, but all say to listen at client_port but I am not receiving any packets. Please let me know am I doing correctly.

Original source