The tsmsky source code appeared in the hands, which broadcasts the work through the OBS Studio program, but I do not understand how it all works.

I enter this code in the OBS Studio settings:

Тип вещания: пользовательский сервер вещания url: rtmp://site.ru/live?a176d51ba0481ebf9bd9 ключ потока: логин пользователя подставляется 

The site in turn gives the tag, with a link to the same rtmp protocol

 $rtmp_url = "rtmp://site.rum/live/" . $login; $hls_url = "//site.ru/hls/" . $login . ".m3u8"; 

And the video is displayed on the site from a computer.

I have not worked with this protocol yet, and to ask no one how it works, so I came here.

Googled, and found info about this protocol.

But I didn’t understand - this is the OBS Studio program that sends data to the link that is specified as the URL (rtmp: //site.ru/live? A176d51ba0481ebf9bd9), and the site simply takes and substitutes this link in, and it translates? ...

If someone can explain, I will be glad. thank

    1 answer 1

    On a server that is accessible by the domain name site.ru there must be a program (for example, Adobe Media Server ) that accepts incoming rtmp connections. Depending on its settings, it manipulates the video stream (s) received, and then, at the request of users, gives the streams they need to their client machines.

    The link you provided only indicates to the client players the broadcast identifier that needs to be requested from the server for playback.