SRGSSR / pillarbox-web

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

feat(player): add bufferedRanges helper function #239

Closed amtins closed 3 months ago

amtins commented 3 months ago

Description

Adds a bufferedRanges function which uses the buffered function native to HTMLMediaElement and allows to know the status of the buffering performed by the browser for a given media.

This function is particularly useful as it can highlight unsolicited gaps in the media resulting in frame loss.

ref: https://github.com/videojs/http-streaming/issues/1369#issuecomment-1475965185

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 09:07 UTC

github-actions[bot] commented 3 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
98.66% (+0.02% πŸ”Ό)
589/597
🟒 Branches 95.68% 288/301
🟒 Functions
99.41% (+0% πŸ”Ό)
169/170
🟒 Lines
99.11% (+0.01% πŸ”Ό)
559/564

Test suite run success

194 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from 95cdb86acc570d806cd9f7b3b8703494c1573da0

github-actions[bot] commented 3 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: