SuRGeoNix / Flyleaf

Media Player .NET Library for WinUI 3/ WPF/WinForms (based on FFmpeg/DirectX)
GNU Lesser General Public License v3.0
687 stars 92 forks source link

[New feature requests]Added multi-threading support for M3U8 #462

Closed kuangxj closed 2 months ago

kuangxj commented 2 months ago

[New feature requests]

Let's see if you can add support for multi-threaded download cache in M3U8 format, or if you already have a related function, can you give a case.

Thanks.

SuRGeoNix commented 2 months ago

@kuangxj Can you explain in more details what do you mean with multi-thread download for m3u8? If that's a thing, I guess FFmpeg should support it and not FlyleafLib. Generally, the downloader is very limited and it will be improved in the next major version.

kuangxj commented 2 months ago

I mean that there is a slow problem when playing the m3u8 file. See if you can add multi-threaded cache ts, and in the case of cache, there is no need to cache again when dragging the progress bar. But now it seems that there is no implementation of this function. Every time you drag the progress bar, the ts file will be downloaded again.

Message ID: @.***>

SuRGeoNix commented 2 months ago

@kuangxj There are options in FFmpeg to increase the buffer. Flyleaf does not currently support Packet Queue that will cache packets in general. Only one way (forward) from the current position for the specified Buffered Duration from Config. However, even this cache will be cleared after seeking backwards or forwards (after the cache). This will be added in v4.