I am trying to get my head around how can I detect when two connected peers lose connection between themselves, not between a peer and Cirrus, based on the VideoPhoneLabs app.
I know this might not be a question related to Cirrus in particular. I thought about creating a socket connection between peer but that works only with AIR as I learned, since you need a server for that.
Is there an event I can listen to for that? I tested the app and sometimes even if you disconnect, the video stream will keep on streaming, so checking for incoming video stream data might not be the solution.
Any feedback would be greatly appreciated! Thank you!
you should watch for a NetStream.Connect.Closed NetStatusEvent being sent to the NetConnection object, where the event.info.stream object is the NetStream in question.