Open warren-bank opened 5 years ago
lets use an example to describe this interesting conundrum..
master.m3u8
320x180.m3u8
384x216.m3u8
512x288.m3u8
640x360.m3u8
960x540.m3u8
1280x720.m3u8
--prefetch
--max-segments
N
X
X*N
(X-1)*N
what to do?..
--hooks
stay tuned..
lets use an example to describe this interesting conundrum..
master.m3u8
includes sub-manifests for various video resolutions:320x180.m3u8
384x216.m3u8
512x288.m3u8
640x360.m3u8
960x540.m3u8
1280x720.m3u8
--prefetch
is enabled,--max-segments
is some integerN
N
segments are prefetched and stored in cacheX
sub-manifests, then a maximum ofX*N
video segments will begin to downloadN
segments can be held in cache(X-1)*N
video segments will be added-to and very quickly ejected-from cache, as subsequent downloads completewhat to do?..
640x360.m3u8
--hooks
"redirect" functionstay tuned..