Well this gave me a bit of a run around, but I have finally (I think) got it all sorted out : red5 running on windows through wamp. This isn’t really that big of a feat but it’s the first time I’ve done something like it and I’d like to explain step by step how to get it working since none of the guides I read held your hand through the whole set up. So I will ^^
If you don’t know what Red5 is here’s a snippet from Wikipedia that explains the basic idea:
Red5 is considered as a free alternate to Adobe Flash Media Server, and supports many of the same feature sets. It has a few additional feature sets such as the ability to intercept live streams, and the ability to easily plug in other Java libraries such as Hibernate.
So, my first attempt was to use tomcat, but that didn’t work so so well, and since I have a wamp server already running I figured it would be best to use that. After some googling I found other people that had already done this, on the Red5 mailing list , here.
Pretty much I’m just gonna copy their nine steps and add my additional comments since their way works, it’s just a little vague though.
- Install wamp
- Create a directory named “red5-server” into C:wampwww
- Download and install TortoiseSVN
- right-click on C:wampwwwred5-server folder and click SVNCheckout
- enter the url from which red5-server will be downloaded : http://red5.googlecode.com/svn/java/server/trunk
- download ant from the apache software foundation (manage dependencies for compilation)
- Extract ant to a folder where ever you want. Just remember it’s path since you will need to add it to your system variables later. I put it at : C:apache-ant-1.7.1
- Download the JDK 6 and install
- Add ant and javac.exe to your system’s Path variable (right click on my computer – > Advanced – > Enviroment Variables – > Find variable Path in System Variables and edit. You need to add the path to the javac.exe which is in your JDK installation (default on xp for me : C:Program FilesJavajdk1.6.0_14bin) and the bat files for ant (C:apache-ant-1.7.1bin) . Make sure that each variable is separated by a semi colon or it won’t work.)
- open a shell on C:wampwwwred5-server
- just type ant server – if ant is not found your system variables are set up wrong. If during building it says that it can’t find tools.jar where it expected the easiest solution is to find where the tools.jar file is on your pc and copy it to where the ant expects it. If at the end of the build it says it can’t find javac.exe, you either installed the wrong version of java or your system vars are set up wrong.
- You can install samples demo via the administration console http://localhost/RED5-server/webapps/installer/index.html
And there ya go -Red5 through your wamp installation.