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