[Red5] Another SharedObjects Missunderstanding
Dominick Accattato
daccattato at gmail.com
Fri May 26 13:16:10 EDT 2006
try setting a breakpoint in that method, and check to see which clients are
connected that shouldn't be. This could be a bug. We can check into this.
On 5/26/06, Tomáš Krcha <tom at krcha.com> wrote:
>
> Please, any comments to this?
> Users aren't unsubscribed automatically from sharedobjects?
>
> Thanks
>
> Tom
> -------------------------------------------------
> Date: Thu, 25 May 2006 16:33:24 +0200
>
> Hi Joachim,
>
> >> Well, I hope this helps in understanding the concept of scopes in
> Red5. <<
>
> Superb. It really works.
> But I have maybe found a bug.
>
> I am using so.setAttribute to spread info about connected people to room.
>
> To get clients in scope I am using this method:
>
> private ArrayList<String> getClientNames(IScope scope){
>
> Iterator<IClient> it = scope.getClients().iterator();
> ArrayList<String> clientNames = new ArrayList<String>();
>
> while (it.hasNext()) {
>
> IClient client = it.next();
>
> // get my special "nick" attribute, which I set to user in event in
> appConnect - should this be a problem?
>
>
> clientNames.add(client.getAttribute("nick").toString());
>
> }
>
> return clientNames;
> }
>
> But even when clients disconnects - the users are still in room.
> That means ... I connect 5 clients ... and disconnect.
>
> The sixth client will get in SO, that there are 6 clients connected to
> room
> (using my method getClientNames) (but they are not).
>
> And that's quite interesting. They should be deleted automatically.
>
> I call getClientNames(room) in roomJoin.
>
> Thanks
>
> Tom Krcha
>
> FOA: As already said, I am using trunk version.
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20060526/cb6267ab/attachment.htm
More information about the Red5
mailing list