-
Connections AutoAccept false Problem
Hi, i've been tryng doing a user authentication using the information in POST "User Authentication", but when i set my tag "Connections AutoAccept" to false in my application.xml, i'm not able to connect to my Stream anymore, even if i set my client.acceptConnection() (in the module i'm developing).
I'd like to know if i'm doing something wrong, because even when i use a simple module i can't connect to my stream.
Thanks in advance!
-
Not sure what the problem is, but it does work as you indicate:
If /conf/[app-name]/Application.xml /Connections /AutoAccept = "true", then all Flash RTMP connections are accepted unless you reject them in onConnect.
If /conf/[app-name]/Application.xml /Connections /AutoAccept = "false", then all Flash RTMP connections are rejected unless you accept them in onConnect.
Richard
-
Thanks Richard it's working now, but i have another question, i'd like to do my wowza module send some information to an aspx page and get the result of this request. Is it possible?
-
You can use Wowza HTTPUtils or other Java APIs for loading http url and processing results, but it is not a great idea in a Wowza application module. A JDBC connection might be a little better but should also be used sparingly.
Richard
-
Do you have an example of how to do this?
-
Hi Richard i could do it!
Thanks
-
Hi Richard i've developed this wowza module, while i'm using withe eclipse and my wowza server is stopped, i could be able of using it but when i close my eclipse and start my wowza service, i can't get using it anymore. Do i have to do something in order ro use it in a production enviroment?
Thanks in advance!
-
Make sure the Wowza IDE is writing the .jar file to the same version of Wowza that you are starting. Look in the [wowza-install-dir]/lib folder for the [project-name].jar file. It might be in another Wowza lib folder, one that was install when you first installed the IDE. If so you can just copy it to the correct location, and restart Wowza, and you should adjust in the IDE build.xml file.
Richard
-
Hi Richard my .jar file is in the lib folder (That's the location - C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 3.0.5\lib). When i use it with eclipse it works fine but when i startup my wowza server it doesn't work and i'm not able to connect to stream. In this project i don't have any sort of code just the standard when i create a new project (dosomething, onAppStart, onAppStop, onConnect, onConnectAccept, onConnectReject, onDisconnect).
Thanks
-
Did you add a Module to the Application.xml Modiules list to load a class from the jar?
If you haven't already, go through this short guide:
http://www.wowza.com/uploads/develop...UsersGuide.pdf
Richard
Last edited by rrlanham; 04-11-2012 at 11:59 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules