Thanks Micheal, but I don't know how to do it.
Can u write it to me?

thanks
Gianni


>From: Michael Klishin <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: Re: [Red5] Close Server Stream
>Date: Wed, 4 Oct 2006 08:25:21 +0400
>
>On Wednesday 04 October 2006 01:47, GIANNI INGUSCIO wrote:
> > Hi, I want to close a ServerStream when a client disconnect.
> > I tried this code into disconnect server method:
> >
> > List bs = getBroadcastStreamNames(conn.getScope());
> >                 for (int i=0;i<bs.size();i++)
> >                 {
> >                    if (bs.get(i).toString().indexOf("myStream") != -1 )
> >                         {
> >
> > getBroadcastStream(conn.getScope(),bs.get(i).toString()).close();
> >                         }
> >                 }
> >
> >
> > but when client disconnect, I have this error...
>
>You need to check up that stream that iterator currently points at is an
>instance of server stream and not a client broadcasted stream. Use
>instanceof. Eclipse JDT have a built-in template for it.
>
>--
>novemberain.com | flexwiki.novemberain.com | rubyonrails.ru | 
>osflash.org/red5
>
>_______________________________________________
>Red5 mailing list
>[email protected]
>http://osflash.org/mailman/listinfo/red5_osflash.org

_________________________________________________________________
Ricerche online più semplici e veloci con MSN Toolbar! 
http://toolbar.msn.it/


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to