feat(UI)!: Add bigButtons config and remove addBigPlayButton config (#9636)

- The following buttons are registered: play_pause, mute, fullscreen,
rewind, fast_forward, picture_in_picture, remote, loop, skip_next,
skip_previous
- SmallPlayButton and BigPlayButton are removed
- The following buttons are used by default on mobile: skip_previous,
play_pause, skip_next
This commit is contained in:
Álvaro Velad Galván
2026-02-02 09:56:43 +01:00
committed by GitHub
parent 0c0c2ffe29
commit 3fd73ce941
23 changed files with 266 additions and 272 deletions
+9 -15
View File
@@ -418,14 +418,12 @@ describe('UI', () => {
// Overflow button
UiUtils.confirmElementFound(controlsButtonPanel,
'shaka-overflow-menu-button');
// Big play button
// Big buttons
UiUtils.confirmElementFound(videoContainer,
'shaka-play-button-container');
UiUtils.confirmElementFound(videoContainer,
'shaka-play-button');
'shaka-big-buttons-container');
// Small play button
UiUtils.confirmElementMissing(videoContainer,
'shaka-small-play-button');
'shaka-play-button');
// Volume bar
UiUtils.confirmElementMissing(controlsButtonPanel,
'shaka-volume-bar');
@@ -439,14 +437,12 @@ describe('UI', () => {
// Overflow button
UiUtils.confirmElementMissing(controlsButtonPanel,
'shaka-overflow-menu-button');
// Big play button
// Big buttons
UiUtils.confirmElementMissing(videoContainer,
'shaka-play-button-container');
UiUtils.confirmElementMissing(videoContainer,
'shaka-play-button');
'shaka-big-buttons-container');
// Small play button
UiUtils.confirmElementFound(videoContainer,
'shaka-small-play-button');
'shaka-play-button');
// Volume bar
UiUtils.confirmElementMissing(controlsButtonPanel,
'shaka-volume-bar');
@@ -460,14 +456,12 @@ describe('UI', () => {
// Overflow button
UiUtils.confirmElementFound(controlsButtonPanel,
'shaka-overflow-menu-button');
// Big play button
// Big buttons
UiUtils.confirmElementMissing(videoContainer,
'shaka-play-button-container');
UiUtils.confirmElementMissing(videoContainer,
'shaka-play-button');
'shaka-big-buttons-container');
// Small play button
UiUtils.confirmElementFound(videoContainer,
'shaka-small-play-button');
'shaka-play-button');
// Volume bar
UiUtils.confirmElementFound(controlsButtonPanel,
'shaka-volume-bar');