How to use PHP to write the HLS protocol
I have written an RTMP server using PHP and have implemented the protocols for RTMP and FLV. It can push and pull flow. We need to convert the RTMP protocol to the HLS protocol now, but it has not been successful. There is too much code to post, so I have added a link and hope that the experts can help correct the code. I hope to correctly package audio and video data into TS files and generate M3U8 index files that can be played correctly by the player.The github address is this rtmp-server .