[Red5] More about Videoconference Demo (fitc)
Storm
storm.storm at gmail.com
Thu Nov 9 05:31:24 EST 2006
Ok, let's see if i can put together what i got and where i am:
At the begining when clients connected they randomly could see each other or
they couldn't. Browsing the client code i found this at Suscriber.as
private function doubleCheckTime():Void
{
clearInterval(si);
if(checkTime == stream.time){
reset();
}
}
I noticed that new clients cleared incoming streams through this, so i just
commented the clear(); call and then that never happens again :)
Now clients that owns cams are working ok, but already connected users
cannot see the noStream picture of any new client tho newer ones will see
the pics for the already connected no-cam users (this shows that the list of
clients is working properly, the problem is the notification of incoming
users WITHOUT cam).
So...i left the client side for a while and started to have a look at the
server Application.class (you didn't break your head to name this did you?
lol j/k).
I was trying to see where the "newStream" calls are generated and it's here:
public void streamPublishStart(IBroadcastStream stream) {
// Notify all the clients that the stream had been started
log.debug("stream broadcast starts: " + stream.getPublishedName());
IConnection current = Red5.getConnectionLocal();
Iterator<IConnection> it = scope.getConnections();
while (it.hasNext()) {
IConnection conn = it.next();
if (conn.equals(current)) {
// Don't notify current client
continue;
}if (conn instanceof IServiceCapableConnection) {
((IServiceCapableConnection) conn).invoke("newStream",
new Object[] { stream.getPublishedName() }, this);
log.debug("sending notification to " + conn);
}
}
}
When an user without webcam connects this method is not called (i've seen
that following the logs step by step) so the current clients aren't notified
of his/her arrive to the conversation.
Now that i (think that) know what happens ... how fix it? I hope someone
colud help me...
Cheers
Carlos
--
-------------------------------------------------------------------
"Nos gusta los domingos ir al parque a pinchar los globos de los niños para
verlos llorar" .- Eskorbuto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20061109/b400372d/attachment.htm
More information about the Red5
mailing list