hls.js keeps downloading segments when paused

Created on 3 Jul 2016  路  6Comments  路  Source: video-dev/hls.js

Hi,

Not sure if its a bug or a feature, but when hls.js is paused it keeps downloading segments like its still playing.

You can check it in the demo page: http://dailymotion.github.io/hls.js/demo/
Just start playing and pause, and watch the buffer keeps filling

Question

Most helpful comment

hls.stopLoad() ?

All 6 comments

hi @shaharmor

of course it's a feature :D
take a look at some hls config here
hls will try to load next fragments until buffer >= config.maxBufferSize

yes it is a feature

On live streams this process is infinite, how to avoid it?

hls.stopLoad() ?

hi @mangui I'm new to video streaming
Is there any option to stop the stream or to dispose.
As I can't stop the stream after 'detachMedia' call..

new location: https://github.com/video-dev/hls.js/blob/master/docs/API.md#maxbuffersize

take a look at some hls config here
hls will try to load next fragments until buffer >= config.maxBufferSize

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harbinha picture harbinha  路  3Comments

jlacivita picture jlacivita  路  3Comments

osamay picture osamay  路  4Comments

dan-ziv picture dan-ziv  路  4Comments

eteubert picture eteubert  路  3Comments