- How do I ensure that only valid stream keys are used? I want to generate stream keys and give those to people I'm working with, but I don't want others to be able to make up random keys and use my server as an open video relay. Restricting by IP is not practical. I suspect the answer has something to do with "on_connect" or "on_publish" but I don't see any practical examples. Ideally I'd just have a text file listing valid stream keys.
- I'm streaming to an endpoint from OBS. Then, I try to stream to that same endpoint from ffmpeg. ffmpeg reports "Server error: Already publishing" which is good and proper. However, somehow the existing stream gets all fucked up anyway. It starts getting audio and video dropouts, clients have to reconnect, and the only fix seem to be to restart the stream. This is less than ideal. I'd rather not have that DoS avenue available.