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 + "'");
No, of course you can have many live streams to one application. The suggestion was for your purpose, but not adequate I see.
Thinking about this, I realize that stream name could not be available at that time because this corresponds with a new NetConnection from the RTMP encoder. The encoder has not yet published a stream. So there is not a way to make that work even with Wowza update.
The soonest you will know the stream name from a live RTMP encoder is in the publish command.