Hello, JP

You can use a thing like that in your method to notify all the client
that client X has disconnect
This code invoke method Disconnect on the client and passes a client Id

         IConnection current = Red5.getConnectionLocal();
         Iterator<IConnection> it = scope.getConnections();
         while (it.hasNext()){
                        try{
                                IConnection co = it.next();                     
        
                                if (co.equals(current)) {
                                        continue;
                                }
                                IServiceCapableConnection service = 
(IServiceCapableConnection) co;
                                if (co instanceof IServiceCapableConnection) {
                                        service.invoke("disconnect",new 
Object[] {
conn.getClient().getId() }, this);
                                }
                        }catch(NoSuchElementException e){
                                log.debug(e);
                        }
        }



2007/3/7, Dan Rossi <[EMAIL PROTECTED]>:
> case "NetStream.Play.UnpublishNotify":
>
>         break;
>         case "NetStream.Play.PublishNotify":
>
>         break;
>
>     case "NetStream.Publish.Start":
>
>
>         break;
>         case "NetStream.Unpublish.Success":
>
>         break;
>
>
> these could be of interest also
>
> public void streamPublishStart(IBroadcastStream stream) {
>         streamStart(stream);
>     }
>
>     public void streamRecordStart(IBroadcastStream stream) {
>         streamStart(stream);
>     }
>
> Jean-Philippe DELAVALLADE wrote:
> > Hi,
> > In my application java (serverside) i've this code, and i can see in
> > my terminal when user close his stream broadcast.
> >
> > public void streamBroadcastClose(IBroadcastStream stream) {
> >         if (log.isDebugEnabled()) {
> >             log.debug("stream broadcast close: " +
> > stream.getPublishedName());
> >         }
> >
> >     }
> >
> > well, it's cool... but i would like to use this info in flash
> > (clientside)
> > How i can get this event in flash and what the code for the result ?
> >
> > Thanks
> >
> > JP
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Red5 mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
>
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>

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

Reply via email to