The invention provides a method and a
system for quickly and accurately
jumping and playing an HLS (
HTTP Live Streaming) video, which are characterized in that an m3u8 file is downloaded and analyzed, a detailed index of a TS (Transport
Stream) fragment is constructed, the TS fragment is downloaded and stored in a local cache in a multi-cache mode, an FFmpeg tool is adopted to pull data in the local cache, then de-
multiplexing, decoding and rendering are performed, and an intelligent Seek
algorithm is utilized to quickly and accurately jump and play the HLS video. The TS fragment near the target time point can be quickly positioned in Seek, and the TS fragment is intelligently shifted forwards for a certain time to start downloading. The
system comprises an m3u8 index file downloading and analyzing module, a double
linked list construction module of TS fragments, a total
byte number acquisition module of the TS fragments, a multiple cache module, an FFmpeg tool module and a Seek jump module. The method has the beneficial effects that rapid and accurate jump playing of the HLS video is realized, when the TS fragment is too long and the network condition is not ideal, the Seek operation
waiting time of the user is effectively reduced, and the watching experience of the user is improved.