-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add skip button plugin #2
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jboix
force-pushed
the
feat/skip-button-plugin
branch
from
April 25, 2024 09:05
a035ba6
to
3739222
Compare
Coverage Report
File Coverage
|
Introduces the skip button plugin, providing a convenient option to skip segments of a video. Key features include: - Detection of skippable segments, such as opening intros and closing credits, through the `srgssr/interval` event from the Pillarbox player. - Multilingual support with translations in French, Italian, English, German, and Romansh. Example of integration: ```javascript import Pillarbox from '@srgssr/pillarbox-web'; import '@srgssr/skip-button-plugin'; const player = new Pillarbox('my-player', { plugins: { 'skip-button-plugin': true } }); player.src({ src: 'urn:swi:video:48115940', type: 'srgssr/urn' }); ```
Introduces vitest as a testing framework. Vitest integrates with es modules by default resulting in a better integration. Changes made: - Adjusted plugin template with a default vitest configuration. - Adjustes eslint configuration with vitest plugins.
jboix
force-pushed
the
feat/skip-button-plugin
branch
from
April 25, 2024 11:43
3739222
to
3ffcba1
Compare
|
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
amtins
reviewed
Apr 26, 2024
- Ensures that the skip button component functions correctly in isolation. - Moved class building to `buildCssClass` function. - Adjusted style and removed unused inline in `skip-button-plugin.js` file. - Fixed the plugin configuration example in the README. - Fixed the plugin configuration example in the README template.
- Adds dedicated `json` files for each localization. - A new prompt has been added to the `create:plugin` script asking for localization, this prompt will automatically generate the folder structure and the bindings if the users wishes to include localization to their plugin.
jboix
force-pushed
the
feat/skip-button-plugin
branch
from
April 26, 2024 19:17
3ffcba1
to
0f3b89b
Compare
Adds dispose logic to remove the event listener from the player.
jboix
force-pushed
the
feat/skip-button-plugin
branch
3 times, most recently
from
April 29, 2024 14:48
e1519be
to
ad46fd3
Compare
amtins
reviewed
Apr 29, 2024
amtins
reviewed
Apr 29, 2024
jboix
force-pushed
the
feat/skip-button-plugin
branch
2 times, most recently
from
April 30, 2024 08:31
6c47660
to
ed26264
Compare
- Added a new prompt in the `create` script to enable users to specify whether they want to generate a new component, plugin, or button. - Adapted the existing templates to correctly produce the type of element selected by the user. - Migrated the functionality of the skip-button-plugin into a simpler component format.
jboix
force-pushed
the
feat/skip-button-plugin
branch
from
April 30, 2024 09:34
ed26264
to
c5b87c7
Compare
amtins
approved these changes
Apr 30, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Introduces the skip button plugin, providing a convenient option to skip segments of a video. Key features include:
srgssr/interval
event from the Pillarbox player.Example of integration
Screenshot
Changes Made
create
script asking for localisation, this prompt will automatically generate the folder structure and the bindings if the users wishes to include localisation to their plugin.create
script to enable users to specify whether they want to generate a new component, plugin, or button.Checklist