title: Getting an RTMP stream from Java
body: <p>I feel pretty stupid asking this, but I just couldn't find anything on the web that helped me.</p>
  
  <p>Is there a way to connect to an RTMP stream from within a Java application?</p>
  
  <p>I just need to connect and read a few bytes. I even don't need to play a video or anything.  It's only for monitoring the connection.</p>
  
  <p>I tried using <code>java.net.URL</code> and even red5's <code>rtmpclient</code> and <code>rtmpconnection</code>, but couldn't figure out how it could help me.</p>