mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
ab16b73614
The HLS parser used isLive_() in some places, which was equal to presentationType_ != VOD, and in other places, checked presentationType_ directly. In fact, isLive_()'s old formulation was checking for all dynamic content (live & event types), so it should be called isDynamic_(). But some usages of the old isLive_() actually only cared about live, and should exclude event types. This cleans up usage and clarifies each condition to either strictly live (excluding VOD & event types) or all dynamic content (live & event, excluding VOD). This is done both inside and outside the HLS parser. This also makes one behavioral change to HLS event type streams. These are now shown as "in progress" (dynamic, finite duration) instead of "live" (dynamic, infinite duration). --------- Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>