[Red5] few questions, IScheduledJob / Set<..> / IServiceCapableConnection.invoke()

morten hundevad hvdogfood at hotmail.com
Mon Feb 5 08:07:15 EST 2007


First off i must amit i am very new to red5, and also very new to java. but 
i have made lots of code .. php / flash / c++, so coding is not that off to 
me.

now say in my app i do this. to execute somthing evry 30 sec.
--------------------
    public boolean appStart(IScope app){
    	String id = addScheduledJob(30000, new FannarchyJob());
    	return true;
    }
--------------------

public class FannarchyJob implements IScheduledJob {
	public void execute(ISchedulingService service) {
	 	// Do something
	}
}
-------------------------

1: how would i inside the FannarchyJob access data inside the main app ?

2: how would i send a message ( sc.invoke("the_method", new 
Object[]{"message"}); ) to all user's conected ( from inside the 
FannarchyJob evry 30 sec) and/or to a special user ?( like user's in a 
special room )

3: is there a equal to clientObj.referrer in red5 ? ( so i can make sure the 
swf is used from my site )?

4: How would i used the output off app.getClients(); and 
theClient.getConnections(); i am unfalilat with Set<IClient> and 
Set<IConnection> dont understand how to use ?

and lastly i want to thank all the dev's for making red5. I think it is a 
great thing. and if there is anything you want help with i would be more 
than willing to help  OS 4 THE WIN !

I would be interested in stuff like:
Admin Interface :::  for debugging like fcs 1 (whitch is only version i have 
tryed), it would be cool to be able to "trace" data out to debug ?  or is 
there a way to do that already ? i have been unable to find that.

Have a good day =) and hope to hear from you all soon =)!

_________________
Morten Hundevad

_________________________________________________________________
Opret en personlig blog og del dine billeder på MSN Spaces:  
http://spaces.msn.com/




More information about the Red5 mailing list