SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
https://srgssr.github.io/pillarbox-web-demo/
MIT License
11 stars 1 forks source link

feat(pillarbox): add default options for pillarbox #170

Closed jboix closed 7 months ago

jboix commented 7 months ago

Description

Closes #167 by enabling several options by default. These changes enhance the out-of-the-box experience for Pillarbox and improve default functionalities to facilitate a smoother integration process. The options that have been enabled are as follow:

Live UI

Enabled the Live UI by default, providing the following features:

By default, the threshold for displaying controls within the live window is set to 120 seconds, and live playback is considered within 15 seconds from the seekable end.

EME

Enabled the EME (Encrypted Media Extensions) plugin by default to support DRM integration and ensure compatibility with protected content.

Responsive Mode

Enabled responsive mode by default to accommodate a broader range of devices and screen sizes. See Video.js responsive option and Video.js breakpoints.

Inline Mode

Enabled inline mode by default, ensuring content is played within the element's playback area. This prevents, for example, the player from automatically switching to fullscreen on iOS devices.

Forced subtitles

Enabled the use of forced subtitles by default. Forced subtitles are pieces of information intended for display when no other text representation is selected. They are used to clarify dialogue, provide alternate languages, display texted graphics, or present location/person IDs that are not otherwise covered in the dubbed/localized audio.

Changes Made

github-actions[bot] commented 7 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟢 Statements
98.39% (+0.02% 🔼)
489/497
🟢 Branches 93.44% 228/244
🟢 Functions 100% 136/136
🟢 Lines
99.16% (+0.01% 🔼)
473/477

Test suite run success

153 tests passing in 9 suites.

Report generated by 🧪jest coverage report action from 360097cf4da51244073e8f64b0c41812e8613dbc

amtins commented 7 months ago

Closes #169