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