videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.45k stars 419 forks source link

feat: add support for independentSegments #1399

Closed adrums86 closed 1 year ago

adrums86 commented 1 year ago

Description

Adds support for #EXT-X-INDEPENDENT-SEGMENTS tags. This feature depends on this PR in the m3u8 parser.

Specific Changes proposed

Allow VHS to respect independentSegments for m3u8 playlists. This will cause VHS to no longer look backward for the next independent segment if independentSegments is true in the main playlist or the media playlist. If independentSegments is set in the main playlist, it will apply to every segment in every media playlist.

Requirements Checklist

codecov[bot] commented 1 year ago

Codecov Report

Merging #1399 (2b43695) into main (0026717) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1399   +/-   ##
=======================================
  Coverage   85.47%   85.47%           
=======================================
  Files          40       40           
  Lines       10025    10027    +2     
  Branches     2320     2322    +2     
=======================================
+ Hits         8569     8571    +2     
  Misses       1456     1456           
Impacted Files Coverage Δ
src/segment-loader.js 96.47% <100.00%> (+<0.01%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more