package gg;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IClient;
import java.util.Set;
import java.util.Iterator ;
public class Application extends ApplicationAdapter
{
public String getUsers() {
Set allUsers = getClients();
StringBuffer users = new StringBuffer();
for (Iterator userIter = allUsers.iterator(); userIter.hasNext();)
{
users.append(((IClient)userIter.next()).getId());
users.append(" ");
}
return users.toString();
}
}
On 6/21/06, Eric C <[EMAIL PROTECTED]> wrote:
I've correct my java syntax, so I don't think I have an issue there anymore... unfortunitly flash only gets null as a response. Here's my new code:public class Application extends ApplicationAdapter
{
public String getUsers() {return getClients().toString();
}
}
On 6/21/06, Eric C <[EMAIL PROTECTED]> wrote:I know a few people have asked this, though I don't see any real answer...I'm really new to Java, so I expect the problem is in my syntax, but I'd appreciate it if someome could correct this:----------------package gg;
import org.red5.server.adapter.ApplicationAdapter;
public class Application extends ApplicationAdapter
{
public String getUsers()
{
Set allUsers = getClients;
IClient oneUser;
string strUsers;
for (Iterator allUsers.hasNext ();)
{
strUsers = strUsers + " " + oneUser.next().getId();
}
return strUsers;
}
}
}----------------
Also, when I'm making the intial connection, I'm guessing I can "name" my connectino in flash for easier refrence by is using something like:
nc.connect("rtmp://localhost/gg","my connection name");
is that right?
Thanks!
-Eric
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
