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.
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.