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 .
Fix the code. Can play normally.Tank you verver much.
long yang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.