Hello All,

I am new to Red5 and have been looking over some examples and 
tutorials.  I am starting to get somewhat of a grasp but one thing in 
particular still escapes me.  Bundled with the Red5 installation 
(version 0.5) is an example in the webapps folder named "test".  It 
consists of two source files Application.java and TestService.java.  
Then inside of the red5-web.xml document there are the following two lines:

    <bean id="web.handler"
        class="org.red5.server.webapp.test.Application"
        singleton="true" />

    <bean id="test.service"
        class="org.red5.server.webapp.test.TestService"
        singleton="true" />   


Using the following flash code I can call the "test" function that is 
defined in the Application class and it works as you would expect:
    nc = new NetConnection();
    nc.connect("rtmp://127.0.0.1/test");
    nc.onResult = function(obj) {
        trace("The result is " + obj);
    }
    nc.call("test", nc, "testing...");

However there is another function in the TestService class named 
"testMe" that I can not seem to call.  I have tried the following, but 
simply get "null" as a result.
    nc = new NetConnection();
    nc.connect("rtmp://127.0.0.1/test");
    nc.onResult = function(obj) {
        trace("The result is " + obj);
    }
    nc.call("testMe", nc, "testing...");



Can anyone point me in the right direction?


Thanks,


Mike

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

Reply via email to