Thursday, April 16, 2009

Red5 application install from Eclipse

So this is a bit of a tricky to explain but one that I think will help most people. Also let me say this is quite easy to do once you have everything in place, took me forever to figure out until I found this video online, I must have watched it like 100 times (really not kidding.)

So here is what I did to get everything setup. Please note I am on Mac OS X 10.5.x, I am sure that windows will be very much the same in overall. Please note that I like linux and wish they had the flex plugin for that platform but not yet.

First, I got the latest version of the eclipse 3.4.2 (newer version should work), I installed it on my machine.

Second, I got the flew plugin for eclipse which is a 30-day trial and apparently will be free eventually but not yet. I installed it on my machine.

Third, I downloaded the latest version of Red5 on my machine which in the case of the Mac was the 1.5 version. I installed it (not an installer but rather a folder with the files) in my Sites directory.

Fourth, I tested the red5 server from command line to make sure everything was in order and then once it worked I quit the server.

Fifth, I then started up the eclipse IDE and then added a new server, I told it that it is a Red5/Flew server and set up all of the paths to the start up scripts. I then tested the server by starting it up from the GUI. Everything worked.

OK, now for building the applications, now again watch the videos, it was not apparent to me the first 50 times.

First, Create a New -> Dynamic Web Project. Type in the name of the project which will eventually be loaded into the webapps/ folder of the Red5. Choose wisely as most of the linux systems don't like spaces and special characters, try "myproject" for example. Then choose the Target Runtime which should be the Red5/Flex. Then the Project Facets, choose the Red5 Application Generation. This actually creates the container for the application.

Second, On the left side of eclipse you will see what looks like (2) projects. One is the Client which installs on the Red5 and the other is all of the Java hooks needed to compile the application to run.

Third, I want to PUSH the application over to the server by right clicking on the PROJECT (not the one ending in Client) and say "Run as" then "Run on Server". Then choose the Red5 Server you setup above. It should then boot up the Red5 server and don't worry it moved the files to the directory and then starts it up. I would double check to make sure it did everything.

Fourth, You want to then test the application by right clicking on the actual "xxxClient" folder and then either "Debug as" or "Run as" Flex Application. You should now see the application come to life.

Now you can install some cool applications from the web. I will post the one for red5recorder in my next post. Hope this works for everyone, again watch the video.

No comments:

Post a Comment

Raspberry Pi Zero W - Wireless Configuation

create the file under "boot" folder wpa_supplicant.conf country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev u...