videojs / mpd-parser

https://videojs.github.io/mpd-parser/
Other
78 stars 54 forks source link

feat: support multi-period live DASH with changing periods #152

Closed gesinger closed 2 years ago

gesinger commented 2 years ago

In order to handle live DASH manifests where periods are changed, added, and removed, merging is used to ensure that the new manifest is a continuation of the last parsed manifest.

In order to handle live cases, the last MPD must be provided via the lastMpd option.

BREAKING CHANGE: period start time is now used as the timeline instead of period index

codecov[bot] commented 2 years ago

Codecov Report

Merging #152 (fbdd78e) into main (7814de7) will increase coverage by 1.12%. The diff coverage is 96.80%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #152      +/-   ##
==========================================
+ Coverage   93.17%   94.30%   +1.12%     
==========================================
  Files          17       18       +1     
  Lines         674      772      +98     
  Branches      224      240      +16     
==========================================
+ Hits          628      728     +100     
+ Misses         46       44       -2     
Impacted Files Coverage Δ
src/inheritAttributes.js 97.33% <ø> (-0.04%) :arrow_down:
src/segment/segmentTemplate.js 100.00% <ø> (ø)
src/segment/timelineTimeParser.js 90.90% <50.00%> (-2.28%) :arrow_down:
src/segment/durationTimeParser.js 95.65% <66.66%> (-2.18%) :arrow_down:
src/toM3u8.js 98.73% <97.87%> (-0.49%) :arrow_down:
src/playlist-merge.js 98.03% <98.03%> (ø)
src/index.js 85.71% <100.00%> (ø)
src/segment/segmentBase.js 100.00% <100.00%> (ø)
src/utils/list.js 100.00% <100.00%> (ø)
src/parseAttributes.js 100.00% <0.00%> (+10.00%) :arrow_up:
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7814de7...fbdd78e. Read the comment docs.