I am trying the Videoconference demo with the instructions of "" thread to
avoid the randomly show or hide of users. All is ok, but when Application
try to call the client side "nuevaConexion" it receive an error:
INFO | jvm 1 | 2007/02/07 12:07:34 | [INFO] 3634907 IoWorker-1:(
org.red5.demos.fitc.Application.info ) Received result {level=error, code=
NetConnection.Call.Failed} for nuevaConexion
The code is same than Storm submit in than thread. The exact call is
@Override
public boolean appConnect(IConnection conn, Object[] params) {
IServiceCapableConnection service = (IServiceCapableConnection) conn;
log.info("Client connected " + conn.getClient().getId() + " conn "+
conn);
log.info("Setting stream id: " + getClients().size()); // just a unique
number
service.invoke("setId", new Object[] { conn.getClient().getId()},this);
//added by Carlos 13/11/2006
Iterator<IConnection> it = scope.getConnections();
while (it.hasNext()) {
IConnection conn2 = it.next();
if (conn2.equals(conn)) {
// Don't notify current client
continue;
}
if (conn2 instanceof IServiceCapableConnection) {
IServiceCapableConnection service2 = (IServiceCapableConnection)
conn2;
service2.invoke("nuevaConexion", new
Object[]{conn.getClient().getId()},
this);
}
}
return true;
}
and the client-side code is
private function nuevaConexion(p_id:Number):Void
{
var id:Number = Number(p_id);
trace("Nueva Conexion: "+id);
videoPool.subscribe(id);
}
Someone know whats the problem or where i can obtain a working copy of
videoConfenence example?
Thanks in advance.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org