title: Best way to build a RTSP client on Android
body: <p>I'm looking for a way to make an RTSP client in Android. I just want to connect an app to an RTSP server and communicate to get stream (as a byte array/buffer, no decoding, no playback, nothing else than get the byte stream). So no all-in-one player suggestion or something else please, just an RTSP access client. I'm surprised that Android supports RTSP (see <a href="https://developer.android.com/guide/topics/media/media-formats.html#network" rel="nofollow noreferrer">Supported Media Format</a>), but doesn't provide an API to manage RTSP access (or, I didn't find one??). So here you are my first question:</p>
  
  <ul>
  <li>Can I use Android's <code>MediaPlayer</code> API to connect an app to a RTSP server and get the byte received without decoding/playing it?</li>
  </ul>
  
  <p>On the other side, I'm looking for a RTSP library/framework for Android (or in pure Java, but for Android usage). And second surprise: there is nothing! Or... a few things like libstreaming but it's no longer alive. So here is my second question:</p>
  
  <ul>
  <li>Is there an RTSP library (or just client library) available?</li>
  </ul>
  
  <p>Third question:</p>
  
  <ul>
  <li>Can I use FFmpeg RTSP access to do that? And how? (do I need all FFmpeg dependencies?)</li>
  </ul>
  
  <p>Thanks for advises</p>