Ok, regarding implementing user authentication, i see when we publish streams they are automatically available as RTMP stream, for example - rtmp://localhost:1935/live/test is automatically available when publishing stream with name test (which pulls its content from rtmp source).
So the way...