2

I would like to put a video from the android device into RTP packets and then send them over UDP to a RTSP/RTP server. Are there already some libraries in Android I can use to achieve this?

Hitesh Bhalala
  • 2,872
  • 23
  • 40
lockdoc
  • 1,539
  • 1
  • 18
  • 31

2 Answers2

2

Well you got the RTPStream where as per the official documentation RtpStream represents the base class of streams which send and receive network packets with media payloads over Real-time Transport Protocol (RTP).

http://developer.android.com/reference/android/net/rtp/RtpStream.html

then you want to take a look at the API demos as stated here: Video streaming using RTSP: Android and see how the rtp/rtsp packet are made here: Creating RTP Packets from Android Camera to Send

Community
  • 1
  • 1
pna
  • 5,651
  • 3
  • 22
  • 37
1

I have found that spydroid is a good starting point. It uses captures the encoded video from the MediaRecorder and sends it out over RTSP.

Uncle Bob
  • 271
  • 2
  • 6