SRGSSR / pillarbox-web

https://srgssr.github.io/pillarbox-web-demo/
MIT License
11 stars 1 forks source link

feat(player): add seekableRanges helper function #238

Closed amtins closed 3 months ago

amtins commented 3 months ago

Description

Adds a seekableRanges function which is particularly useful to get an array of ranges representing the portions of media that the user agent is able to seek to. seekableRanges uses the seekable function native to HTMLMediaElement.

Changes made

github-actions[bot] commented 3 months ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-03-28 11:54 UTC

github-actions[bot] commented 3 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
98.68% (+0.02% πŸ”Ό)
596/604
🟒 Branches 95.68% 288/301
🟒 Functions
99.42% (+0% πŸ”Ό)
170/171
🟒 Lines
99.12% (+0.01% πŸ”Ό)
565/570

Test suite run success

196 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from 276bf03437689ea63c233ab865fd243dc9a00848

github-actions[bot] commented 3 months ago

:tada: This PR is included in version 1.8.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: