I am trying to write a HLS server with on the fly segmentation.
I am facing issues with figuring out when to delete a old media segment and how to keep track of starting sequence number for multiple client connections and reloads.
Multiple clients may request the same stream at different points in time. For each client, the starting sequence number may be different. An this has to be tracked so that on subsequent reloads, the starting sequence number of the segments is correct.
Has anyone in the community got experience with HLS live broadcast? Any pointers would be helpful.