Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Red5 RTMP Streaming

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.

like image 923
SyntaxError Avatar asked Jan 24 '10 14:01

SyntaxError


People also ask

Is RTMP UDP or TCP?

RTMP is a TCP-based protocol designed to maintain low-latency connections for audio and video streaming.


2 Answers

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.

like image 93
Paul Gregoire Avatar answered Sep 21 '22 11:09

Paul Gregoire


I'm also playing with red5, and I've considered these two resources very helpful:

  • http://www.red5tutorials.net/index.php/Tutorials:Getting_Started_With_Red5_Server
  • http://trac.red5.org/wiki/Documentation/UsersReferenceManual/Red5CoreTechnologies/01-Creating-New-Applications#Chapter1.CreatenewapplicationsinRed5
like image 24
Thiago Avatar answered Sep 19 '22 11:09

Thiago