Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTMP Authentification #62

Open
OaShadow opened this issue Nov 4, 2022 · 1 comment
Open

RTMP Authentification #62

OaShadow opened this issue Nov 4, 2022 · 1 comment

Comments

@OaShadow
Copy link

OaShadow commented Nov 4, 2022

Hello there!

Iam trying to use MonaServer for publishing a RTMP stream to a bunch of PC's.
The link should not be accessible from people without having authentificate thereselfs to be allowed to see the Stream.

What I want to achive is, to have a auth link where you need to enter the username and password to view the stream.
Example: rtmp://username:[email protected]:1935/live/stream

Is this already implemented or planned to be?
Or is there a module you can load into MonaServer to archieve this?

@thomasjammet
Copy link
Contributor

Hi!

That's a good question, you cannot use this URL format with RTMP but you can add the parameters inside the query, something like this :
rtmp://123.0.0.123:1935/live/stream?user=username&pass=password

And on the server side you could implement your own authentication control here :
https://github.com/MonaSolutions/MonaServer2/blob/master/MonaTiny/sources/MonaTiny.cpp#L173

Tell us if you need help for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants