Commit Graph

10 Commits

Author SHA1 Message Date
Álvaro Velad Galván bd167c3744 feat: Add listenMulti and listenOnceMulti to shaka.util.EventManager (#9652)
Co-authored-by: Wojciech Tyczyński <tykus160@gmail.com>
2026-02-03 21:49:35 +01:00
Álvaro Velad Galván 0f4e849acf fix(UI): Fix position of sub menus (#9485)
Now the submenus are rendered within the overflow menu
2025-12-10 13:28:40 +01:00
Phyo Wai Lin e7b1e5a0f6 feat(UI): Ability to change UI icons (#9115)
## How to register a custom icon?

**Icons need to be registered before initializing the player.**

Register a custom icon from  Material Symbols:

```js
shaka.ui.IconRegistry.register('<PATH_VALUE>');
```

Register a custom Icon from any icon set:

```js
shaka.ui.IconRegistry.register('<NAME>', {
  path: '<PATH_VALUE>',
  viewBox: '<VIEW_BOX>',
  size:  24, // optional
});
```

Register a custom Icon (that contains multiple paths) from any icon set:

```js
shaka.ui.IconRegistry.register('<NAME>', {
  path: ['<PATH_VALUE_1>', '<PATH_VALUE_2>'],
  viewBox: '<VIEW_BOX>',
  size:  24, // optional
});
```

Register a custom Icon using URL of the icon:

```js
shaka.ui.IconRegistry.register('<NAME>', {
  url: '<URL>',
  size:  24, // optional
});
```

Closes: #9045

---------

Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
2025-09-19 11:59:17 +02:00
Phyo Wai Lin 7d61334759 feat(UI): Replace icon font with SVG icons (#8986)
* Update all UI components to use SVG icons instead of icon fonts
* Adjust some icon sizes to 32px

Replacing icon fonts with inline SVGs removes the loading delay caused
by font fetching. Icons now appear immediately with zero delay.

Close https://github.com/shaka-project/shaka-player/issues/2467
2025-08-19 12:40:53 +02:00
Álvaro Velad Galván bd6a322704 chore(Demo): Disable visualizer button while casting (#8450) 2025-04-14 11:04:29 +02:00
Álvaro Velad Galván c867839fec chore(Demo): Disable visualizer button on full screen (#8428) 2025-04-09 14:00:38 +02:00
Álvaro Velad Galván cdd69b54bb chore(Demo): Disable visualizer while casting (#8257)
Co-authored-by: theodab <theodab@google.com>
2025-03-13 09:07:14 +01:00
Álvaro Velad Galván 9d2cf092a4 chore(Demo): Save visualizer state (#6920) 2024-06-27 07:28:02 +02:00
theodab e8e28073c1 chore(demo): Removed demo localization system (#5665)
A localization system was added to the demo, in preparation for future localizations of the demo page.
However, such further localizations were never added, and it seems likely that they will never be added.
Given that it will almost definitely never be used, the localization system has just become an annoyance that makes adding new features to the demo more difficult, so this removes the system entirely.
2023-09-25 02:58:39 -07:00
theodab 55d0a1556a feat(demo): Demo visualizer for buffered ranges. (#4417)
You can activate this visualizer UI by using the new
"Buffer Visualizer" button in the overflow menu of the player UI.
2022-08-22 10:30:59 -07:00