AIR app on Android for live chat crashes
No matter which streaming server I use, I regularly have a crash. My scenario is:
One side is on browser on PC, the other side is on android air app. Application is receiving a live stream and publishing a live stream at the same time, using two different Netstreams. Half of the time the application crashes. Crashes are rearly occuring during chat, but most of the time after a chat session is ended, and some time after netstreams are closed. There is no exceptions.
If I run the same AIR application on Windows Desktop, no problem occurs.
My application also records video and views recorded video. No problem occurs there. So, play("recorded.flv") and publish("someFLV", "record") has no problems.
When it comes to live streaming, problem occurs.
I use netstream.buffer = 0 for publishing live content, and netstream.buffer with its default value for playing live content.
When chat ends, I detach camera and microphone from netstream, remove eventlisteners from netstream, remove camera from Video object, set microphone and camera to null.
I tried closing and not closing netstreams, but nothing changed.
I tried sound only and video only streams on both sides, but nothing changed.
I compiled with AIR on Android 2.6 and 3.0, but nothing changed.
I tried compiling with Flash Builder Burrito and Flash Builder 4.5, but nothing changed.
I investigated Android adb logcats, but nothing useful is traced.
Application just crashes without any message or warning.
Is there a bug for playing and receiving live content at the same time on AIR on Android?