Repository navigation
|
I am using this script to push to nms I wasn't able to find where the ffmpeg sent username and password can be picked up and validated The original RTMP clients made in flash had this https://helpx.adobe.com/adobe-media-server/ssaslr/application-class.html#application_onconnect application.onConnect = function (newClient, userName, password) {
// Do all the application-specific connect logic.
if (password == "XXXX"){
newClient.writeAccess = "/" + userName;
this.acceptConnection(newClient);
} else {
var err = new Object();
err.message = "Invalid password";
this.rejectConnection(newClient, err);
}
}; const nms = new NodeMediaServer(config);
nms.on("preConnect", (id, args) => {
console.debug(">> PRE CONNECT", id, args);
});
nms.on("connect", (id, stream, args) => {
console.debug(">> CONNECT", id, stream, args);
});
nms.on("doneConnect", (id, stream, args) => {
console.debug(">> DONE CONNECT", id, stream, args);
});
nms.on("prePublish", async (id, streamPath, args) => {
console.debug(">> PRE PUBLISH", id, args);
});
nms.run();And what I see is this Where are those username and password that ffmpeg is sending ? I have found this ticket maybe related as it is exactly the same need #70 |
Answered by
illuspas
Aug 9, 2025
Replies: 1 comment
|
NMSv2 does not support this kind of verification method. Then you can perform some verifications here. |
0 replies
Answer selected by
illuspas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NMSv2 does not support this kind of verification method.
Passing the parameters as a query in the URL is the way it supports.