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?
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
Post a Comment