This forum post has moved to the following article:
http://www.wowzamedia.com/forums/content.php?131
Enjoy,
The Wowza Team
This forum post has moved to the following article:
http://www.wowzamedia.com/forums/content.php?131
Enjoy,
The Wowza Team
Last edited by charlie; 10-04-2010 at 11:20 AM.
Hi,
is there a way to pass a parameter back to the client which can be used to detect the reason for disconnection?
i would love to be able to tell my client if his connection was rejected due to authentication error / if it was rejected by some other reason (i am using other server side modules too like limiting maximum number of connections). I was hoping to find a way to return a parameter to the client from the onConnect method .. when the connection is rejected.
Any help in this direction would be greatly appreciated.
(I am a veteran at java, rookie at wowza and novice at best at action script)
thanks,
Addy
I stumbled upon this method while digesting the wowza apis.. am I moving in the right direction?![]()
http://www.wowzamedia.com/forums/showthread.php?t=7051
on the above thread Charlie has used the piece of code sendStreamOnStatusError(stream, "NetStream.Play.Failed", "Access denied: "+streamName);
which looks like some way of telling the client "ACCESS DENIED" ... am hoping to find something similar.. but inside the onConnect method. In charlie's code the play method has been overridden.
Help!!
thanks.
Addy
Take a look at the server-side API. There are several variations of the method IClient.rejectConnection that will send back the proper error status.
Charlie
can I just call a client Method (which is defined inside the client CustomNetConnection class) inside the onConnect so I would tell the client the reason of rejection/acceptance ?
Thanks!! a ton!!
omuleanu,
See this post for an example:
http://www.wowzamedia.com/forums/showthread.php?t=6875
RichardCode:sendClientOnStatusError(client, "NetStream.Play.Failed", "The client IP was rejected");
thanks rrlanham for sharing link here...use full for me too