SRGSSR / pillarbox-web-suite

A suite of plugins, themes, and components for pillarbox-web
https://srgssr.github.io/pillarbox-web-suite/
MIT License
4 stars 0 forks source link

feat: add skip button plugin #2

Closed jboix closed 5 months ago

jboix commented 5 months ago

Description

Introduces the skip button plugin, providing a convenient option to skip segments of a video. Key features include:

Example of integration

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'
});

Screenshot

image

Changes Made

Checklist

github-actions[bot] commented 5 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% 93 / 93
🔵 Statements 100% 93 / 93
🔵 Functions 85.71% 6 / 7
🔵 Branches 88.88% 8 / 9
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
plugins/skip-button/src/skip-button.js 100% 88.88% 85.71% 100%
plugins/skip-button/src/lang/index.js 100% 100% 100% 100%
Generated in workflow #17
github-actions[bot] commented 5 months ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-04-30 09:38 UTC