NetConnection will drop after 4 streams were viewed

45 Views Asked by At

In my Adobe AIR application I have a list of video streams available to view, user can switch from stream to stream, however NetConnection will raise NetConnection.Connect.Closed event after user switched between 4 streams, basic example

User connects to stream1 -> works
User switches to stream2 -> works
User switches to stream3 -> works
User switches to stream4 -> works
User switches back to stream1 -> NetConnection.Connect.Closed raised

I am wondering what is this magic number 4 ? So far I have checked the following things but nothing worked:

  1. Changed number of maxPeerConnections on NetConnection -> irrelevant

  2. Changed number of processes on my video server -> irrelevant

So the only solution for me right now is to restart NetConnection every time user has reached 4 stream views limit, but that's not the best solution, obviously.

If anyone can point me on what this magic number is - would be great!

0

There are 0 best solutions below