SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
https://srgssr.github.io/pillarbox-web-demo/
MIT License
12 stars 1 forks source link

chore(demo): reset player state before loading new media #122

Closed amtins closed 9 months ago

amtins commented 9 months ago

Description

Ensures that the player has been reset before loading new media. This prevents the old media being displayed for a fraction of the time before the new media is loaded. It also allows media without a poster to inherit the poster from the previous media.

Screencast from 30. 11. 23 16:29:58.webm

Changes made

github-actions[bot] commented 9 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 98.36% 480/488
🟒 Branches 93.42% 227/243
🟒 Functions 100% 134/134
🟒 Lines 99.14% 463/467

Test suite run success

142 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from 9ce33577538c78678e572d42e082284889ddc200