there are several issues to consider around netconnection and the time
things take. inside corperate firewalls the netconnection might never fail
yet never connect. we have built time outs around the connection process as
well as the time it takes to get streamlength.


On 3/5/07, Muller Jan <[EMAIL PROTECTED]> wrote:

 My fault J Problem is solved. The mistake was in a fact, that detection
of a bad conneciton cost about 5 seconds and I do not wait...



Sorry for this thread





*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Muller Jan
*Sent:* Monday, March 05, 2007 2:42 PM
*To:* [email protected]
*Subject:* Re: [Red5] Netconnection status



My code:



public function netStatusHandler( event:NetStatusEvent ):void

            {

                switch( event.info.code ) {

                    case "NetConnection.Connect.Success":

                        vsMain.selectedChild = pnlVideo;

                    break;

                    case "NetConnection.Connect.Closed":

                                               vsMain.selectedChild =
pnlConnClosed;

                               break;

                    case "NetConnection.Connect.Failed":

                        vsMain.selectedChild = pnlConnFailed;

                    break;

                }



            }



nc.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler );



*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Johannes Nel
*Sent:* Monday, March 05, 2007 2:37 PM
*To:* [email protected]
*Subject:* Re: [Red5] Netconnection status



rejection is an explicit rejection. use "NetConnection.Connect.Failed"

On 3/5/07, *Muller Jan* <[EMAIL PROTECTED] > wrote:

Hi,

How to obtain an info that server is not running. I try to use status
event "NetConnection.Connect.Rejected", but nothing happen.

Thx…


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




--
j:pn
http://www.lennel.org

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




--
j:pn
http://www.lennel.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to