This invention discloses an HLS streaming
media channel switching method and
system based on parallel preprocessing, relating to the field of streaming media
transmission technology. The method includes: the
server synchronously generating a main playlist and a hot-switching playlist for each channel; the hot-switching playlist records the addresses of micro-media segments starting with I-frames and is continuously updated; the
client determines the target channel based on a prediction strategy, requests the target channel's hot-switching playlist in advance, downloads the latest micro-media segments for decoding, and caches them in a waiting frame
queue; when a switching command is received, the
client directly retrieves a frame from the waiting frame
queue for rendering, and simultaneously requests the target channel's main playlist to download regular media segments for playback. This method, by moving network download and decoding operations to before switching, transforms resource acquisition
processing into local memory access, fundamentally eliminating the black screen buffering wait during traditional HLS switching and achieving a seamless, frame-level instantaneous switching experience for the user.