9/11/2010 9:15:17 AM
Title:
red5chat problem
I put the folder red5chat that you have provided in webapps D:\Program Files\Red5\webapps ,with all the files classes, xml
i have test my red5 server it's work ok i think with demo app "port test"
RTMP default SUCCESS
RTMP 80 FAILED (it's normal i have apache running on 80)
RTMP 443 FAILED
RTMP 1935 SUCCESS
RTMPT default FAILED (this rtmpt, i dont know for what is it..)
RTMPT 80 FAILED
RTMPT 1935 FAILED
RTMPT 443 FAILED
I am running the server red5 on 127.0.0.1 (latest windows version with installer);
i have let default in .fla source code the rtmp address;
I dont put the chat in html file (i dont know how...)
when i start the red5chat.swf (that i have compiled with M Flash Professional 8)
the login form appear i put my username there select male or female end when i push enter the message appear:
UserName already in use !
this message come from chat.as file:
function connect_chat() {
//trace("connecting to chat");
//params = pseudo status role sexe room world
//trace(_root.rtmpString+"-"+_root.user.pseudo+"-"+_root.user.status+"-"+_root.user.role+"-"+_root.user.sex+"-"+_root.user.room+"-"+_root.user.world);
_root.user.webcam=!(Camera.get().muted);
trace("_root.user.webcam="+_root.user.webcam);
nc.connect(_root.rtmpString,_root.user.pseudo,_root.user.webcam,_root.user.onlineStatus,_root.user.role,_root.user.sex,_root.user.room,_root.user.world);
nc.onStatus = function(info){
//trace("info.code="+info.code);
if (info.code == "NetConnection.Connect.Success") {
enter_chat();
} else if(info.code=="NetConnection.Connect.Rejected") {
login_msg("UserName already in use !");
_root.login.login_pb.enabled=true;
return;
} else {
//login_msg("**UserName already in use !");
_root.login.login_pb.enabled=true;
return;
}
};
function connect_chat() {
//trace("connecting to chat");
//params = pseudo status role sexe room world
//trace(_root.rtmpString+"-"+_root.user.pseudo+"-"+_root.user.status+"-"+_root.user.role+"-"+_root.user.sex+"-"+_root.user.room+"-"+_root.user.world);
_root.user.webcam=!(Camera.get().muted);
trace("_root.user.webcam="+_root.user.webcam);
nc.connect(_root.rtmpString,_root.user.pseudo,_root.user.webcam,_root.user.onlineStatus,_root.user.role,_root.user.sex,_root.user.room,_root.user.world);
nc.onStatus = function(info){
//trace("info.code="+info.code);
if (info.code == "NetConnection.Connect.Success") {
enter_chat();
} else if(info.code=="NetConnection.Connect.Rejected") {
login_msg("UserName already in use !");
_root.login.login_pb.enabled=true;
return;
} else {
//login_msg("**UserName already in use !");
_root.login.login_pb.enabled=true;
return;
}
};
That is mean my application SWF is not connecting to the red5 server, why? I put the red5chat directory in webapps from red5 installation dir. Here is my chat in zip file may be you take a look to see what is wrong.
http://rapidshare.com/files/418451679/orig.zip
9/11/2010 9:55:31 AM
have you verified your red5 installation to work with any other demo application ?
Check this url to install red5 properly and check if its installed
http://askmeflash.com/tutorial/7/red5-installation-and-setup-how-to
9/11/2010 10:19:16 AM
Yes it's working 100% all the demo, all the installer the red5 is ok
9/11/2010 10:25:23 AM
In server console of red5 server after the server start when i load red5chat.swf in console appear:
[INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Scope chat not found on 127.0.0.1
what is mean?
9/11/2010 10:57:34 AM
I have the same problem, i will explain to you in your second question Sir.
12/29/2011 8:14:03 AM
andy + jonnyq:
Change in red5-web.xml from the red5chat package <bean id="web.handler"... the property class from "chat" to "chat.Application".
Best regards