What I need is to register a username and password to stream, not to whatch. Now anyone with the address rmtp://mydomain.com:1935/live/xxxxx can transmitting to my server. For example, you can do the stream rmtp://mydomain.com:1935/live/yyyy in my server.
Anyone can do any live stream on my server for free.
I just want to leave the transmission with a password.
But for customers to watch free.
Temporarily I restricted the AWS Firewall to only my IP has access to port 1935, but it's annoying to have to change and it's not ideal.
A client should pass authetication parameters in RTMP URL rmtp://mydomain.com:1935/live?username=user&password=pwd/streamKey
To handle those parameters, you should use REST hook /connect. You backend server will receive a custom field with parameters passed, for example: