Hi Manola R.G.
I think I've got the point.
Your explanations have made it clear to me.
Thanks a lot
Sloopy
----- Original Message -----
From: "Manolo R.G." <[EMAIL PROTECTED]>
Date: Monday, August 7, 2006 9:09 pm
Subject: Re: [Red5] IServiceCapable & IStreamCapable
> [EMAIL PROTECTED] escribió:
> > Hi,
> > I need to reference a connection as both IServiceCapable and
> > IStreamCapable
> I was wondering if the 'ServiceCapability' and the
> 'StreamCapability'
> of a IConnection depends on the use of a NetStream object client
> side,
> but only with this code:
>
> Whole flash code:
> var nc:NetConnection = new NetConnection();
> nc.connect("rtmp://localhost/webcam");
>
>
> part of Java red5 code:
> public boolean appJoin(IClient client, IScope app){
> IConnection cn = Red5.getConnectionLocal();
> if (cn instanceof IServiceCapableConnection)
> log.debug("IServiceCapableConnection INSTANCE");
> if (cn instanceof IStreamCapableConnection)
> log.debug("IStreamCapableConnection INSTANCE");
> }
>
> Produces this lines in log
> INFO | jvm 1 | 2006/08/07 20:48:22 | [DEBUG] 494351 mina-4:(
> org.red5.server.adapter.ApplicationAdapter.appJoin )
> IServiceCapableConnection INSTANCE
> INFO | jvm 1 | 2006/08/07 20:48:22 | [DEBUG] 494351 mina-4:(
> org.red5.server.adapter.ApplicationAdapter.appJoin )
> IStreamCapableConnection INSTANCE
>
>
> So i think you can call the IServiceCapableConnection and
> IStreamCapableConnection methods casting to this interfaces like
> previous messages...
>
> if (cn instanceof IServiceCapableConnection)
> IServiceCapableConnection service_cn =
> (IServiceCapableConnection)cn;
>
> _______________________________________________
> 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