PDA

View Full Version : checking for connection


everland
11-12-2007, 10:44 AM
Hi,


would like to ask, if there is any way to find out if the broadcaster got disconnected from his server? and if there is a way the receiver know that broadcaster got disconnect? =) thanks alot.

everland
11-13-2007, 08:41 AM
i found what i need... ns.onStatus = function(pInfo) {
trace(pInfo.code);
if (pInfo.code == "NetStream.Play.UnpublishNotify") {
trace("User has disconnect from the server");
} else if (pInfo.code == "NetStream.Play.PublishNotify") {
trace("User is connecting");
} else if (pInfo.code == "NetStream.Play.InsufficientBW") {
trace("not enough ram");
} else if (pInfo.code == "NetStream.Play.Failed") {
trace("start");
}
};

but i still don't quite know ,if the broadcaster is not using the web cam, how to check at viewer side? thanks.