Closed jboix closed 4 months ago
Status | Category | Percentage | Covered / Total |
---|---|---|---|
🔵 | Lines | 93.81% | 850 / 906 |
🔵 | Statements | 93.81% | 850 / 906 |
🔵 | Functions | 93.75% | 60 / 64 |
🔵 | Branches | 92.3% | 84 / 91 |
File | Stmts | % Branch | % Funcs | % Lines | Uncovered Lines |
---|---|---|---|---|---|
Changed Files | |||||
packages/pillarbox-playlist/src/pillarbox-playlist-button.js | 100% | 100% | 100% | 100% | |
packages/pillarbox-playlist/src/pillarbox-playlist-menu-item.js | 100% | 100% | 100% | 100% | |
packages/pillarbox-playlist/src/pillarbox-playlist-modal.js | 96.8% | 96.15% | 95.23% | 96.8% | 223, 241-247 |
packages/pillarbox-playlist/src/pillarbox-playlist-ui.js | 0% | 0% | 0% | 0% | 1-43 |
packages/pillarbox-playlist/src/pillarbox-playlist.js | 98.52% | 89.18% | 95.23% | 98.52% | 82-85, 300 |
packages/pillarbox-playlist/src/lang/index.js | 100% | 100% | 100% | 100% |
PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-05-28 13:01 UTC
:tada: This PR is included in version @srgssr/pillarbox-playlist-v1.0.0 :tada:
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
:tada: This PR is included in version @srgssr/skip-button-v1.0.0 :tada:
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
Description
Resolves #8 by adding an optional a modal that contains a simple playlist with controls such as enable/disable repeat, previous and next buttons, and the ability to select items from the list directly.
How to Activate the UI
To activate the optional UI for the playlist plugin, you need to add the
PillarboxPlaylistButton
to the control bar of your Video.js player. Here’s an example:Changes Made
Converted the plugin to be a pure video.js plugin. Initially intended as a pillarbox plugin, it was decided that any interaction with our business core logic can be handled outside of the plugin, e.g.:
Added
toggleRepeat
andtoggleAutoadvance
functions to the playlist plugin.Utilized the state API for video.js plugins to monitor changes in the playlist within the UI components, see https://videojs.com/guides/plugins/#statefulness
The list of items displays a title and duration, which are expected to be in the "data" field of each playlist item.
Created a separate plugin with a unique build to allow on-demand opting out of the default UI.
Checklist