SRGSSR / pillarbox-web

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

feat(mediaComposition): expose media title and image url #218

Closed amtins closed 4 months ago

amtins commented 4 months ago

Description

Expose the title and URL of the media image from the mediaComposition.

These properties can be accessed as follows:

player.currentSource().mediaData.title;
player.currentSource().mediaData.chapterImageUrl;

Resolves #215 by reducing the number of lines in the middleware function and eliminating the need to use the mediaComposition in setSource.

Changes made

github-actions[bot] commented 4 months ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-03-04 15:08 UTC

github-actions[bot] commented 4 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
98.78% (+0.88% πŸ”Ό)
566/573
🟒 Branches
95.55% (+0.97% πŸ”Ό)
279/292
🟒 Functions
99.37% (+0.02% πŸ”Ό)
157/158
🟒 Lines
99.26% (+0.74% πŸ”Ό)
538/542
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :-: | :- | :- | :- | :- | :- | | 🟒 |
`...` / MediaComposition.js
|
98.55% (-1.45% πŸ”»)
| 100% |
95.83% (-4.17% πŸ”»)
| 100% |

Test suite run success

186 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from 3e07a3bddb6c826d48ca469ea64d4fc6fe07ad37

github-actions[bot] commented 4 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: