Hi
I'm trying to detect if i lose a connection to my stream. I'm connecting to vital stream.
I need to hold the connection open for a longtime so when i try and play a stream the connection somtimes has been broken. How can i detect if the connection is droped.
I've tried unsing the nc.onStatus event but i cant get it to fire when i force a connection to drop (by pulling the network cable).
A way to check the netConection before i play a stream is all i really need.
something like this:
if(nc.connected == true){
//play my stream
}else{
//repair my connection and then try playing
}
Anyhelp would be awsome!
Andrew