Skip to content

Pass chapters to shaka-player#9134

Open
absidue wants to merge 2 commits into
developmentfrom
shaka-chapters
Open

Pass chapters to shaka-player#9134
absidue wants to merge 2 commits into
developmentfrom
shaka-chapters

Conversation

@absidue
Copy link
Copy Markdown
Member

@absidue absidue commented May 13, 2026

Pull Request Type

  • Feature Implementation

Related issue

Description

As mentioned in #8772 shaka-player v5 added better support for chapters. This pull request passes the chapters to shaka-player so that chapter name appears when you hover over the seekbar and making it possible to use their in-player chapters menu (not a replacement for the main chapters menu, it just lets you easily change chapters in full screen and full window modes).

Unfortunately I ran into some issues while trying to use shaka-player markers, on short videos with few chapters such as Me at the Zoo, they displayed fine, but on longer videos with lots of chapters such as the WAN show they were a blurry mess, so this pull request still uses FreeTube's own chapter markers on the seek bar. As far as I could tell from my experimentation it seems like CSS linear-gradients were designed to either be used with only percentages or absolute pixel values, trying to combine both with calc like shaka-player does causes the blurring issues.

Screenshots

player menu with chapters button open chapters menu inside the player menu chapter title shown on seek bar hover

Testing

Open a video with chapters and check that the chapters show up on the seek bar as markers, in the tooltip when you hover over the seek bar and as a menu option in the player overflow menu. Check that all 3 things happen for audio, dash and legacy formats.

Desktop

  • OS: Windows
  • OS Version: 11

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 13, 2026 19:39
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 13, 2026
@PikachuEXE
Copy link
Copy Markdown
Member

PikachuEXE commented May 14, 2026

Switching to audio format now has no thumbnail = height shortened too much to access menu items
image

Edit 1: Seems dev has same issue but not my recent custom build, checking for commit that does this

Edit 2: Found this in console
image

PikachuEXE
PikachuEXE previously approved these changes May 14, 2026
Copy link
Copy Markdown
Member

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine in dev with #9136 applied

Comment thread src/renderer/helpers/player/SabrManifestParser.js Outdated
@avelad
Copy link
Copy Markdown

avelad commented May 14, 2026

Unfortunately I ran into some issues while trying to use shaka-player markers, on short videos with few chapters such as Me at the Zoo, they displayed fine, but on longer videos with lots of chapters such as the WAN show they were a blurry mess, so this pull request still uses FreeTube's own chapter markers on the seek bar. As far as I could tell from my experimentation it seems like CSS linear-gradients were designed to either be used with only percentages or absolute pixel values, trying to combine both with calc like shaka-player does causes the blurring issues.

Do you want fix it in Shaka? I'm happy to review your PR.

Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
@absidue
Copy link
Copy Markdown
Member Author

absidue commented May 14, 2026

Do you want fix it in Shaka? I'm happy to review your PR.

Sure, I'll give it a go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: waiting for review For PRs that are complete, tested, and ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Show chapter title on seek bar

3 participants