Antonos
01-17-2008, 09:59 AM
There are a lot of tutorials in the web about red5. When I was trying to build my first application for red5 server I was using following tutorial
http://www.actionscript.org/resources/articles/615/1/Getting-started-with-red5-server/Page1.html
When I compile app in eclipse, restart red5 server and was trying to connect to this application via my flash client, I detect from the red5.log that appConnect method worked correctly but when I closed flash client which was connected to red5 server, nothing happened. Seems that appDisconnect was not triggered.
I found solution in Red5 mailing list
http://www.mail-archive.com/red5@osflash.org/msg10694.html
appDisconnect method should override super class method. I change code from
public void appDisconnect( IConnection conn , Object[] params )
{
log.info( "Red5First.appDisconnect " + conn.getClient().getId() );
}
to
/** Override super class method */
@Override
public void appDisconnect( IConnection conn )
{
log.info( "Red5First.appDisconnect " + conn.getClient().getId() );
super.appDisconnect(conn);
}
and it was working properly
Same problems can appear working with roomStart, appStart and appStop methods
I hope this information will help someone.
http://www.actionscript.org/resources/articles/615/1/Getting-started-with-red5-server/Page1.html
When I compile app in eclipse, restart red5 server and was trying to connect to this application via my flash client, I detect from the red5.log that appConnect method worked correctly but when I closed flash client which was connected to red5 server, nothing happened. Seems that appDisconnect was not triggered.
I found solution in Red5 mailing list
http://www.mail-archive.com/red5@osflash.org/msg10694.html
appDisconnect method should override super class method. I change code from
public void appDisconnect( IConnection conn , Object[] params )
{
log.info( "Red5First.appDisconnect " + conn.getClient().getId() );
}
to
/** Override super class method */
@Override
public void appDisconnect( IConnection conn )
{
log.info( "Red5First.appDisconnect " + conn.getClient().getId() );
super.appDisconnect(conn);
}
and it was working properly
Same problems can appear working with roomStart, appStart and appStop methods
I hope this information will help someone.