We’re testing out Wowza for live streaming and I’m working on a database authentication module with MySQL based on the tutorials which are on the site. What I’m trying to do is assign one user to one publishing stream. As-is I can either have no authentication and anyone can publish streams or have authentication, but anyone with a login can publish to any stream name.
I was hoping there was a way to get the stream name from within the getPassword method as I could then use it as an extra parameter in my database lookup. Please can someone tell me if this is possible and if not how would I go about doing it?
rs = stmt.executeQuery("SELECT password FROM streams where user_name = '"+username+"'");
rs = stmt.executeQuery("SELECT password FROM streams where user_name = '"+username+"' and stream_name='"+ streamName + "'");