kim-company / membrane_hls_plugin

Plugin providing a `Membrane.HLS.Source` element for HTTP Live Streaming (HLS).
Apache License 2.0
8 stars 5 forks source link

Download segments only when requested #2

Open dmorn opened 1 year ago

dmorn commented 1 year ago

Right now as soon as a segment message is received the element will immediately schedule its download. In case of an m3u8 playlist which is already a VOD (all segments are immediately available), this causes the whole video to be loaded into memory.

Keep instead a bounded buffer of ready segments, schedule downloads based on the demand.