HI there,

i´m trying to create an application handler, but without success and a lot
of problems: "registerServiceHandler is undefined in IScope"
(tutorial by Joachim:
[http://www.joachim-bauch.de/tutorials/red5/MigrationGuide.txt/view])
I have also tried to configure it in red5-web.xml. 
I make my first steps in JAVA... its hard to find the right way :)

Thanks for any help.

Code:

//APLICATION
package demo;
//import org.appache.common.logging
import org.red5.server.adapter.ApplicationAdapter;

import org.red5.server.api.IClient;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;
import org.red5.server.api.Red5;

import org.springframework.core.io.support.*;

import demo.Handler;

public class Application extends ApplicationAdapter {
  public boolean appStart(IScope scope) {
        scope.registerServiceHandler ("clientCallHandler", new Handler ());
return true;
  }             
}


//HANDLER
package demo;
import org.red5.server.api.IClient;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;
import org.red5.server.api.Red5;
import org.apache.commons.logging.*;

public class Handler {
        private Log log;
        
        public void whoami() {
            IConnection conn = Red5.getConnectionLocal();
            IClient client = conn.getClient();
            IScope scope = conn.getScope();
            log.debug("--------------------------------");
            log.debug(scope);
            log.debug(client);
            log.debug(client.getId());
            log.debug(IClient.ID);
            log.debug(client.getConnections());
            log.debug(client.getScopes());
            log.debug(client.getCreationTime());
            log.debug(conn);
            
        }
}


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to