second - yeah it's all coming back to me now! Instead of dealing with it at the new stream notification, we need to do it at the connection level - when someone connects, that's when everyone is notified. Then we need to match up that user's stream with their ID, and bam, I think we're in business.
On 11/9/06, Storm <[EMAIL PROTECTED]> wrote:
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
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
[ JPG ]
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
