This tutorial was written in November, 2008 and covers one way of setting up the Red5 Flash Media Server in a Windows development environment. The intended audience is users that are familiar with Red5 and are interested in developing a custom application. If you just want to test red5, dont follow this tutorial. Instead grab one of the official releases at: http://code.google.com/p/red5/
Comments
Hi Hendrik,
I haven't ever dealt with the authdemo specifically, but another great place to look that might help you find the issue is in the red5 logs folder. Besides the main logs there are usually application specific logs.
I don't have experience with the eclipse plugin, but if you start the server using batch scripts it used to print out the applications it has loaded as it loads them in the terminal. If you redirect the terminal output to a file temporarily, it might help too. To do this on a windows host in a command prompt open in the same folder as red5.bat you would do something similar to this.
red5.bat > red5StartupLog.txt
Then after you wait a while for the startup procedure to finish, you would have to kill the process with control + c in the command window.
I hope that helps a little.
Hi guys!
Since a couple of days I'm trying to get the red5 authdemo to work (in Eclipse Juno on OS X 10.7.2).
see: http://blog.infrared5.com/2012/05/red5-authentication/
demo-project source: http://dl.dropbox.com/u/7316897/ir5/blog/red5-auth.zip
The red5 Server seems to work fine but I've got that above-mentioned 'due to long handshake'-message a few seconds after trying to connect rtmp://localhost/authdemo via Flash Media Live Encoder 2.3
Is it possible that I haven't installed the authdemo application correctly?
In this case... how do I have to install a server instance?
Is there a way to check if authdemo works correctly?
Please reply right here or send an email to schnitzls.spam
I appreciate every kind of help!
Thank you in advance!
Hi, I have installed red5 & started it . But when i try to install demos (http://localhost:5080/installer/) , it shows me "connecting..." & never ends . I have net connection Ok . Whats the problem ? please help me . I have installed latest : "Red5-1.0.0-RC2.exe" & jdk version 7 : "jdk-7u7-windows-i586.exe"
when it try to check out this is the error i receive please help me out
svn: E175002: Unable to connect to a repository at URL 'http://red5.googlecode.c
om/svn/java/server/trunk'
svn: E175002: OPTIONS of 'http://red5.googlecode.com/svn/java/server/trunk': cou
ld not connect to server (http://red5.googlecode.com)
Thanks Twisty, Im glad you got it working! Just FYI - you dont need ant for any of the versions of Red5 if all you want to do is run it.
However if you want to re-build it from source code or build server side applications, youll need ant.
Good post! I was installing to Win 2008 Server and this helped. FYI RC 1 does not require ant installed. If installing to Win 7/2008, follow these additional steps:
http://stackoverflow.com/questions/7969445/red5-test-page-wont-come-up?answertab=votes#tab-top
Hello
Hello,
My hosting company is a semi-managed hosting and I had the install red5 for me and they did then they came back and told me I need to configure the red5 to my requirements. I have no idea on how to do this I have messed up the server about 8 times and lost all my data and they had to reinstall the os for me over a months time. So Can anyone help me getting this configured so I can use it and I do not have to pay a red5 hosting company?
Thanks
cullin@dr.com
When you compile the server using ant, a dist folder is created, then the server is run out of that directory. I'd make sure your RED5_HOME environment variable is set to the right location. Also make sure if using Windows Vista+ that the UAC isn't preventing ant from creating directories.
After compiling red server using ant server command.I am getting the following.
compile-demos:
[echo] Webapps dir: webapps
[echo] Webapps build dir: dist/webapps
[copy] Warning: C:\Program Files\flash\trunk\deploy does not exist.
Also the i am not able to launch demo.Please help
Awesome tutorial! I have a smooth installation by the way!!
I have read somewhere that you need only JDK 1.6 (JDK 6.0) in order to install the demos or else you will get a version mismatch error. Well, I'm trying it now
Thanks. :D
Have you checked out the Google groups Red5 group and mailing list? There has been a lot of activity lately regarding mp4 files.
Hi
i have installed red5 server, it is running flv files, but not running mp4 and 3gp files.
it does not give any error too.
Anybody got idea about this.
Thanks in advace
Kasim,
By default ofla demo awlays loads with localhost in the connection string box. You need to manually type in any other IP address.
OS Windows Server 2008
Red5 0.9
Server ip address is 192.168.148.128
i connect it from 192.168.20.118
Everything works fine. when i click on connect from oflaDemo it gives me following error.
(5836) NetConnection.onStatus: level = error code = NetConnection.Connect.Failed
the problem is it still shows rtmp://localhost/oflaDemo, and i think it should have shown 192.268.248.128 which is the server in this case.
please help me .
Thnks for this post
Hi again Chris. When red5 runs, it uses the tomcat http server to run a webpage that can be opened in a browser on port 5080.
If you are trying to connect to red5 using an actual flash application even running inside a webpage the syntax is a bit different. Let's assume I have used the installer application on red5 to install the classic oflaDemo application. In order to connect to that in a flash application, assuming the server is running locally, the syntax would be: rtmp://localhost/oflaDemo.
The rtmp protocol uses port 1935 by default (I think), so make sure local apps can connect to it.
Red5 is hard to use, but hopefully this will help you out.
Thanks Charles!
Well, I got red5 to run using command prompt and the last line says "Bootstrap complete". But can you direct me on how to run my client app. I'm using Eclipse IDE with the FlashBuilder plugin and when I try to run the Actionscript, an HTML page opens but its empty and doesn't seem to connect to my localhost:5080. I'm a red5 newbie so I'm not sure how to get my client running or if I'm missing a step in the deployment process.
Thanks,
chris
Chris,
If you used one of the installers to install Red5 you don't need to use ant to re-build it. Ant is only when you're building the server from its source code when you are making server-side applications.
If you want to try and manually start Red5 on windows when it is already built, there is usually a red5.bat batch script you can just double click on, and it will start the server. The installers normally install red5 as a service too. Not sure about the latest builds though.
Hi all,
Every time I try to test Red5, I type http://localhost:5080/ but the page tells me that I could not connect to localhost:5080. I know that Red5 is running and this is the output I'm getting in command prompt. I'm getting confused on the last part of the tutorial on how to install a demo for further testing. Can anyone help?
Cmd output: (towards the end)
C:\Program Files\Red5>red5
...
Setting default logging context: default
Logger context selector method found
Exception java.lang.ClassCastException: org.slf4j.helpers.BasicMDCAdapter cannot
be cast to ch.qos.logback.classic.util.LogbackMDCAdapter
Bootstrap complete
C:\Program Files\Red5>ant server
Notice:
Ant is not required, you are using a built version of Red5 which was installed u
sing one of our installers. Ant is used for compiling the server, which in this
case is already compiled.
Go here for more info: http://wiki.red5.org/
Thanks
Press any key to continue . . .
C:\Program Files\Red5>
Thanks,
chris
very nice tutorial, it helps me lot
Hi lsharma. There is already a decently mature project project called red5phone that does exactly what you're looking for.
http://code.google.com/p/red5phone/
If your looking for skype like performance, I would suggest taking a look at the XMPP protocol instead with its libjingle extensions that implement actual SIP and more standardized protocols.
hi,
Past many days i have been looking to find a solution for web based voice chat application... i found out that red5 will provide me the solution that will help users to chat with each other... is there any open source voice chat application avb....
Nice!!! very helpful..
John,
You'll likely need to create a flash client side application to stream the live video. On the Red5 server side, the demo application oflaDemo can actually be used for the streaming. There are two really old Flash demos with Red5 called Simple Broadcaster and Simple Subscriber (You have to use the application installer to install them) that will do exactly what you are talking about.
If you want example code, you can use my Red5 Tuning application as a start that will broadcast and receive live streams from Red5. It's written in Flex.
http://www.technogumbo.com/projects/red5-tuning-application/index.html
hi there
can you tell me how can I make a simple webcam broadcasting app using flash and red5? I need something that can show my webcam to a user on internet.
rply me at:
elton2jain{at}gmail.com
Hi,
I am suffering with red5 tooooomuch, please help me, I got like below error, when testing samples of red5 server
(1948) connected?: true
(2082) NetConnection.onStatus:
description = No scope 'oflaDemo' on this server.
code = NetConnection.Connect.Rejected
level = error
(2082) NetConnection.onStatus:
level = status
code = NetConnection.Connect.Closed
If your are able, send me mail to swamykumarv@rediffmail.com
Thanks for advance.
Thank you very much. Its very helpful to setup Red5 in my system.
Oops. I meant 5080!
Hi again Kashif.
You must have something already running on port 8080. On the command line of any Windows, Linux, or Mac machine you should be able to use the command "netstat -a -b" to see all of the binaries that are occupying your system's ports.
I haven't checked out the source of red5 in six months or so, but assuming the directory tree is still the same, you can change the configuration that runs tomcat on port 5080 in red5. This file can be found at:
conf/red5.properties . Under the HTTP section, you can change the port.
help needed
when i run project in eclipse it gives error of port in use 5080. how can i stop port i stop red 5 services manually i stop through red5-shutdown bat but it gives same error all the time 5080 port is in use so what to do.... ?
Kashif,
Sorry to hear you are very frustrated. Being frustrated and understanding Red5 go hand in hand.
The best resource I have seen lately are the videos on red5guide.com. I didn't watch all of them, but I think she assumes your using Eclipse, which I never do.
i have 3 main problems
1. the tutorials available on net are of old version of red5. so please if any one have latest tutorial link do send me.
2. when i create application it gives errors that build path is incomplete and it gives error on imports. as commons-logging file i'v download it but now it give errors there is no file or package is there in new version as mentioned in most of tutorials specialy it gives error in logging file.
3- i download commons logging package sepratly and include it to my project but now it gives error of
The type org.springframework.core.io.support.ResourcePatternResolver cannot be resolved. It is indirectly referenced from required .class files
so please do help me i realy need help GURUZ and Developers...
Thanks a lot for this.
Will you please help me modify and run java examples?
Thanks again.
Niranjan.phadke@gmail.com
Thanks ! It works perfect ! Juste for svn this one works perfectly [win vista] : http://subversion.tigris.org/files/documents/15/39559/svn-1.4.5-setup.exe
Sorry that didn't help JaV. If you use "ant clean" it will delete all the compiled stuff and completely recompile everything. They try "ant server". Something I often do when I am making modifications to build.xml is to run "ant server > startuplog.txt" and then wait a while, run the commands that screw something up. They when you kill the server you will have the entire output of the startup sequence in the text file.
Hi Charles, thanks for ur help but im still stuck. Its when im on http://localhost:5080/installer/, i click to install a sample, and it just hangs. I think the issue is caused by the build going wrong in step 8. I dont seem to be able to build it properly and i think that is causing trouble. If anyone can help i would really appreciate it. I am in desperate need of a working red5 server.
Hi JaV. In the Red5 root directory, take a look inside the dist folder. All applications before they run using this method should end up in the dist folder. Do you think it could be a permissions problem? Also, doesn't the command prompt show the URLs from where the applications are being downloaded from as its happening? Its possible that when you tried this, the server they are hosted on is having some difficulty?
Hi. I got through most of the setup, but at step 8 i got a build error. I had to type in ant ivyclear retrieve to get a successful build (I found this line on another site). This works, but when i get to step 10 and try to install demos, they start but never finish. It should only takes minutes but it never finishes for me so I assume there's a problem. Could you please help if u can coz i cant find any answers.
T-H-A-N-K...UUUU 4-this posting!!! I am new to this stuff and your help has been INVALUABLE! Really appreciate you taking the time and having the heart to make my life ez!
Nice tutorial! I was actually a bit confused by the normal Red5 docs, but this got me off the ground. Thanks!
Good job Guys Mate
Tried to build from within Flex Builder 3 and it almost worked but i have a couple of issues probably where JRE and Ant are coming via the Flex SDK... not sure still learning! but otherwise it's nice and easy to svn and checkout in Flex Builder (Subclipse). If i suss it i'll let you know. cheers
Nice work - all works for me as of June 09 with latest trunk source (0.8).
Thanx Mate nice post..!! :D
Comments are currently disabled.