Red5 RTMP Streaming

SyntaxError picture SyntaxError · Jan 24, 2010 · Viewed 13.6k times · Source

I'm very new to RTMP streaming and am seeking help. Just enough to get me started.

I have been Googling for about 5-7 hours now and still cannot determine my answer!

The documentation of Red5 is limited and cannot find any support at all! Even similar questions to mine are unanswered on stackoverflow :(

My questions are:

  1. Why can't I simply place an .mp3 inside red5's server root and play it?
  2. To serve a simple MP3 file over RTMP. Do I need to write a Java application?
  3. If so, any pointers?

To make matters worse, I have little to none Java experience.

Please help ST.

Answer

Paul Gregoire picture Paul Gregoire · Sep 3, 2010

The easiest way to do what you want to is to install the oflaDemo. Start your red5 server and go to http://localhost:5080/installer
You need to select "oflaDemo" there and install it, if you don't already have it installed. Next place your mp3's or whatever in the following location

%RED5_HOME%/webapps/oflaDemo/streams

Red5 home will be the directory where you installed Red5. So if you used an installer it may look like this:

C:\Program Files\Red5\webapps\oflaDemo\streams

To play your mp3 without writing any code flash or java, next go to this url: http://localhost:5080/demos/ofla_demo.html
Connect and select your file from the list and thats it.