thanks
i use Eclipse for building my appli
if i want to put only this :
public List<String> getStreams() {
IConnection conn = Red5.getConnectionLocal();
return getBroadcastStreamNames(conn.getScope());
}
in a class what i name test for example
how i can invoke this in Flash ????
thx
JP
Le 23 févr. 07 à 15:31, joseph wamicha a écrit :
If for example you have this method in Demoservice.java, you need
to define the related handler inside your webapp's red5-web.xml
file within WEB-INF folder of your application:
eg
<bean id="demoService.service"
class="org.your.application.DemoService" />
You can then do a method call from the flash client:
nc.call("demoService.getStreams", nc_responder);
Alternatively if you have defined your method within the class that
extends ApplicationAdapter, web.handler would automatically take
care of your method being found by the red5 service invoker after
an nc.call. The bean definition for the web.handler looks like this:
<bean id="web.handler" class="org.your.application.Application"
singleton="true" />
Check out the oflaDemo for an examples.
>public List getStreams() {
> IConnection conn = Red5.getConnectionLocal();
> return getBroadcastStreamNames(conn.getScope
());
> }
--
C is forever.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org