NetConnection.Connect.Closed not raised in iPhone on server shut down


i have video app written in flex (4.6/3.2) monitors it's connection server report video quality , disconnects. works fine in android events i've attempted correctly notified , handled however, in ios if focibly shut down server not receive netconnection.connect.closed event in handler (or other event).

 

has else seen behaviour?

found - http://help.adobe.com/en_us/flashmediaserver/devguide/wsae44d1d92c7021ff-1f5381712889cd7b5 6-8000.html

 

monitoring connection on mobile device

some mobile devices cannot receive "netconnection.connect.closed" message. in case, can monitor netstream.bufferlength , netstreaminfo.bytecount properties in timer discover network issues. when netstream.bufferlength less netstream.buffertime, , netstreaminfo.bytecount not increasing, there network issues.

netstreammonitortimer.start();

netstreammonitortimer.addeventlistener(timerevent.timer, timerhandler);

lastbytecount = 0;

private function timerhandler(e:timerevent):void{

     if(netstream.bufferlength < netstream.buffertime && netstream.info.bytecount == lastbytecount) {

          // network has issues.. reconnect new netconnection

          netconnection2 = new netconnection(); ///on netconnection.connect.success:

          netstream.attach(netconnection2);

     }

     lastbytecount = netstream.info.bytecount;

}



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support