Hi Pham Ngoc Hai,
Yes.
Instead of shared objects I fire events from Red5 to the flash client.
This is a little code snippet to invoke the method "svr2flaLobbyMessage" on
all connected flash clients. You can add some if-then-else logic to invoke
on a single client.
IConnection conn = Red5.getConnectionLocal();
// Walk through all connections and 'message' them all
Iterator<IConnection> it = conn.getScope().getConnections();
while (it.hasNext()) {
IConnection conn2 = it.next();
if (conn2 instanceof IServiceCapableConnection) {
IServiceCapableConnection service = (IServiceCapableConnection) conn2;
service.invoke("svr2flaLobbyMessage", new Object[] { oReturn });
}
}
gr,
Ruben
------------------------------------
www.red5tutorials.net: Tutorials - How tos - FAQ
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens
> Pham Ngoc Hai
> Verzonden: vrijdag 13 juli 2007 13:39
> Aan: [email protected]
> Onderwerp: Re: [Red5] Send an event to flash client
>
> Thank you Rob,
> Is there a way to notify only one client?
>
>
>
>
> --- Rob Schoenaker <[EMAIL PROTECTED]> wrote:
>
> > Use a shared object maybe? You can update values in SOs
> > from the Red5
> > side which will be propagated to every client.
> >
> > /Rob
> >
> > _______________________________________________
> > Red5 mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
>
>
>
>
> __________________________________________________________________________
> __________
> Get the free Yahoo! toolbar and rest assured with the added security of
> spyware protection.
> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
>
> _______________________________________________
> 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