I use the Wowza streaming engine in my project. I successfully started wowza with basic authentication. I need to authenticate wowza with my database because I am creating a java project. It will process the authentication process after I add the jar to the Wowza driver folder.
This is the jar source code:
public class WowzaTesting {
boolean authStatus = false;
public boolean authenticationTest(String username, String password) {
System.out.println("Authentication Process started");
if (authStatus) {
return true;
} else {
return false;
}
}
}
And I added to the conf file:
<Module>
<Name>TestWowza</Name>
<Description>Java code for testing wowza</Description>
<Class>com.test.wowza.WowzaTesting</Class>
</Module>
Then restarted the wowza server engine.
I have a few questions:
- Did I skip any steps?
- How to call a method in a jar file during a Wowza check?
I am currently using this command to broadcast live "
ffmpeg -i "rtsp://localhost:port/livetest" -vcodec copy -acodec copy -f rtsp "rtsp://username:password@localhost:port/live/livetest
- How to get username and password from the above command for my method?