[Red5devs] HOWTO create new applications in Red5
John Grden
neoriley at gmail.com
Mon Feb 27 14:19:57 EST 2006
ok, how about logging now?
I dont' ever get and of the logging:
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.red5.server.context.AppLifecycleAware;
import org.red5.server.context.BaseApplication;
public class Othello extends BaseApplication implements AppLifecycleAware
{
protected static Log log = LogFactory.getLog(Othello.class.getName());
public Othello()
{
// constructor
}
public void startUp() {
log.info("starting the Othello service...");
}
public void onAppStart()
{
log.info("!!!!!!!!!!!!!!!!!! Othello.onAppStart...");
}
public void onAppStop()
{
log.debug("!!!!!!!!!!!!!!!!!! Othello.onAppStop...");
}
public boolean onConnect(org.red5.server.context.Client client)
{
log.debug("!!!!!!!!!!!!!!!!!! onConnect..." + client);
return true;
}
public void onDisconnect(org.red5.server.context.Client client)
{
log.debug("!!!!!!!!!!!!!!!!!! onDisconnect..." + client);
}
}
On 2/27/06, Joachim Bauch <jojo at struktur.de> wrote:
>
> Hi,
>
> I wrote a small document describing how to write new applications
> for Red5.
>
> You can find the latest version in the repository at
> http://svn1.cvsdude.com/osflash/red5/doc/HOWTO-NewApplications.txt
>
> Please note that it applies only to the trunk of the repository,
> not version 0.3!
>
> Greetings,
> Joachim
>
>
>
> _______________________________________________
> Red5devs mailing list
> Red5devs at osflash.org
> http://osflash.org/mailman/listinfo/red5devs_osflash.org
>
>
>
>
--
John Grden - Blitz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5devs_osflash.org/attachments/20060227/9f3b56ae/attachment.htm
More information about the Red5devs
mailing list