I tried it, but it's not that. there is a problem with the close method. Anyway..I want closing the stream service created client side, on disconnect method. How can I do it? tHANKS Gianni >From: "Manolo R.G." <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: Re: [Red5] Close Server Stream >Date: Wed, 04 Oct 2006 10:51:37 +0200 > >GIANNI INGUSCIO escribió: > > 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... > > > > java.lang.ClassCastException: org.red5.server.stream.StreamService >It could be that you have to specify the Class that is returned, try: >List<String> bs =getBroadcastStreamNames(conn.getScope()); > >_______________________________________________ >Red5 mailing list >[email protected] >http://osflash.org/mailman/listinfo/red5_osflash.org
_________________________________________________________________ Vuoi vedere la reazione dei tuoi amici? http://imagine-msn.com/messenger/launch80/?locale=it-it _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
