>
> If I get it right... you mean you chose the wrong scope... I dunno
> about that, gimme your code :)
>
yes u got me right down here is a source includet the SO sample whrein a
SO is created and asigned to a room.
first thought it should have been listed also, but if i overthink it..
the room is an instance of the application the client iam conecting with.
the scope iam using is the scope for my conection which only resides my
client
this client isent in the room also if its an instance of the application
so the connection doesent belong to the room also if its an instance of
the application
because it usses annother scope than the connection which my client is
conected with.
right?
-->code
~~~~~~~~~~~~~~~~~~
[code]
package demo;
import org.red5.server.api.Red5;
import java.util.Iterator;
import java.lang.String;
import org.red5.server.api.IScope;
import org.red5.server.api.IClient;
import org.red5.server.api.IConnection;
import org.red5.server.adapter.ApplicationAdapter;
*import* org.red5.server.api.so.ISharedObject;
*public* *class* Application *extends* ApplicationAdapter {
*public* *boolean* roomStart(IScope room) {
*if* (!*super*.roomStart(room))
*return* false;
createSharedObject(room, "sampleSO", true);
ISharedObject so = getSharedObject(room, "sampleSO");
*return* true;
public String getSOList()
{
String elementList = "Elements: ";
IConnection conn = Red5.getConnectionLocal();
IClient client = conn.getClient();
IScope scope = conn.getScope();
Iterator<String> mySet = getSharedObjectNames(scope);
while (mySet.hasNext()) {
Object element = mySet.next();
elementList = elementList + "" + element;
}
return "Output : iam " + client + " and running with scope "
+ scope + ". i require the following SharedObjects: " + elementList;
}
}
[/code]
~~~~~~~~~~~~~~~~~~~~
btw it looks like i also have a damaged red 5 installation, jetty
doesent start properly and the sample apps also
untill now only tested from flash envoirement with and ant for this
version of red 5
and with former version also in browser what had worked,
may not working since my last update where i had to delete and
reinstall everything, maybe thatfor the compilation
did worked with errorous code :D.
greetz Sascha
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org