Commit Graph

10 Commits

Author SHA1 Message Date
Álvaro Velad Galván c6e6082bc2 feat: Allow override subtitle position (#9522)
Close https://github.com/shaka-project/shaka-player/issues/9521

---------

Co-authored-by: Wojciech Tyczyński <tykus160@gmail.com>
2025-12-19 13:38:33 +01:00
Álvaro Velad Galván d5be5d6f45 feat!: Text displayers should receive a shaka.Player pointer (#9515)
Related to https://github.com/shaka-project/shaka-player/issues/9301
2025-12-17 10:11:00 +01:00
Álvaro Velad Galván a1cb769aa7 feat: Allow switch between UITextDisplayer and NativeTextDisplayer on runtime (#8736)
We prefer NativeTextDisplayer when using PiP and Fullscreen API of the
video element itself. Otherwise we prefer UITextDisplayer
2025-06-12 12:09:05 +02:00
xiao 724b0b2a71 feat: new TextDisplayer implementation to allow selecting subtitles via native API and controls (#8520)
Close https://github.com/shaka-project/shaka-player/issues/8519
Fixes https://github.com/shaka-project/shaka-player/issues/8475

Introduce `NativeTextDisplayer` as a replacement of
`SimpleTextDisplayer`. But keep them both work.
Is MSE mode, `NativeTextDisplayer` creates `<track>` elements for text
streams. And listens to change events on both ends to keep them in sync.
In SRC mode, `NativeTextDisplayer` would do nothing, the player uses
original TextTracks instead.

Advantages of `NativeTextDisplayer`:
- Allow text track selection using the browser built-in UI
- Allow text track manipulation using native APIs
- Avoid transferring and processing cues in SRC mode

---------

Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
2025-05-07 12:58:29 +02:00
Álvaro Velad Galván c8747ab0b8 feat: Move caption scaling from css to new textDisplayer.fontScaleFactor config (#8242)
Fixes
https://github.com/shaka-project/shaka-player/pull/8215#issuecomment-2711266477
2025-03-12 13:16:48 +01:00
David HM Morgan 18695c6c23 feat: Text font scaling customisation ability (#8215)
With reference to #8025, this is a partial proposal to see if this style
of extensible customisation could be favourable to the shaka-player
community:

Proposal for some accessibility options whereby an App builder can
customise subtitle/caption size, with the potential of an App offering
accessibility options for text size.

This style could be used for other text styling attributes in a similar
way, but this is just the first step.

---------

Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
2025-03-06 13:44:49 +01:00
Wojciech Tyczyński 0df53d2f9a docs: Improve TextDisplayer documentation (#7919)
Related to #7917
2025-01-22 16:18:30 +01:00
Álvaro Velad Galván 752df7666f docs: Fix setVideoContainer documentation (#6893)
Related to
https://github.com/shaka-project/shaka-player/issues/6672#issuecomment-2130151079
2024-06-24 12:11:55 +02:00
David HM Morgan e3d86cdeff docs: fix typo (#6854) 2024-06-18 09:44:27 -07:00
Álvaro Velad Galván a9cbb2f746 docs: Add tutorial for text displayer (#6087)
Closes https://github.com/shaka-project/shaka-player/issues/4862
2024-01-12 11:21:27 +01:00