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 playlist management plugin to pillarbox player #6

Closed jboix closed 4 months ago

jboix commented 5 months ago

Description

Introduces a pillarbox playlist plugin. This plugin supports playlist loading, dynamic modifications, auto-advancement, and repeat functionalities.

Key Features

Example

import Pillarbox from '@srgssr/pillarbox-web';
import '@srgssr/pillarbox-playlist';

const player = new Pillarbox('my-player', {
  plugins: { pillarboxPlaylist: { autoadvance: true, repeat: true } }
});

const playlist = [
  { sources: [{ src: 'video1.mp4', type: 'video/mp4' }], poster: 'poster1.jpg' },
  { sources: [{ src: 'video2.mp4', type: 'video/mp4' }], poster: 'poster2.jpg' }
];

player.pillarboxPlaylist().load(playlist);

Other Changes

Checklist

github-actions[bot] commented 5 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 97.64% 373 / 382
🔵 Statements 97.64% 373 / 382
🔵 Functions 91.66% 22 / 24
🔵 Branches 85% 34 / 40
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/pillarbox-playlist/src/pillarbox-playlist.js 96.88% 83.87% 94.11% 96.88% 61-64, 124-125, 267, 269-270
Generated in workflow #32
github-actions[bot] commented 5 months ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-05-14 15:30 UTC

github-actions[bot] commented 4 months ago

:tada: This PR is included in version @srgssr/pillarbox-playlist-v1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 4 months ago

:tada: This PR is included in version @srgssr/skip-button-v1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: