Have you ever seen the following errors while developing your first red5 application:
No scope “something” on this server
If yes than may be you’ll find this post somewhat helpful…
As any flex developer I had eventaly come across a project that needed server side support. Since Red5 is free, this is what everyone uses, right?
Ok, great – a quick google search brought me to osflash.org.
Latest version – 0.7, took 1 minunte to download.
Installed, tried runninng the demos – nothing worked. It appeares, the apache and coldfusion servers where conflicting with red5.
Stopped the apache and coldfucion services – the demos worked, played around with the ball demo.
Trying to follow a tutorial from flashextensions.net confused me a little. The guy was talking about several ways of deploying your applications on the server and none of them worked for me. Why?
First of all, trying to start the server by running the ant server command in a prompt just gave me a list of unresolved dependencies. That was very sad.
After some more google searching I found that this distribution of red5 was missing some config files. The one particularly important was ivysettings.xml. I found it in the project’s repository: http://svn1.cvsdude.com/osflash/red5/java/server/trunk/. Dowloaded all the ivy*.xml files, just to be sure.
Managed to start the server, but unfortunately saw the following flash output:
“No scope “demo” on this server”
Again, very sad.
Tripple checked everything – seemed to be ok.
Sniffed around the existing demos, to find a valid scope. The bandwidth test application provided me with one – bwcheck. Connecting to rtmp://localhost/bwcheck instead of rtmp://localhost/demo showed:
description : Connection succeeded.
code : NetConnection.Connect.Success
This was sort of a good start.
Time for intensive google search.
I found that a LOT of people where screaming for help, having the same issues with this distribution.
The most obvious thing to do was to try an older server version.
Tried version 0.6.3, windows instalation.
Very happy to see that everything works just fine! I mean, just copy the new files in webapps directory, restart the server (the red5 service, in my case) and TA-DAAA.
Great! But what about red5 0.7? Why doesn’t it work as it should? Did anyone manage to create an application without encountering tons of errors?
I decided to test the version that resides in the repository.
SVN checkout, ant build – worked fine.
Tried to run red5.bat, it threw a lot of exceptions but eventualy started up. (I have no knowledge of creating new windows services)
Copied the necessary files in webapps directory, started the server again, tested the flash movie – SUCCESS ! 😐
Even though 0.7 has some new features and bugfixes, use 0.6.3, at least I will. Or, use the SVN version of 0.7 (but I won’t).
And yes, write to osflash.org asking for better releases!
Red5 is fun