Skip to content

Show watched sections of a video on the seek bar - #4262

Open
Stiven-Gjekaj wants to merge 2 commits into
code-charity:masterfrom
Stiven-Gjekaj:feature/watched-sections-seek-bar
Open

Show watched sections of a video on the seek bar#4262
Stiven-Gjekaj wants to merge 2 commits into
code-charity:masterfrom
Stiven-Gjekaj:feature/watched-sections-seek-bar

Conversation

@Stiven-Gjekaj

Copy link
Copy Markdown
Contributor

Records the parts of a video that were actually played and paints them on the progress bar, so scattered sections of long videos and streams stay visible across sessions.

Playback is merged into ranges per video; seeking, ads, a paused player and streams without a known duration add nothing. The ranges of the 200 most recently watched videos are kept in extension storage.

The ranges are drawn per chapter below YouTube's own bars, which leaves the played and the buffered progress untouched. The feature is off by default and switchable under Appearance > Player.

Closes #4261

Records the parts of a video that were actually played and paints them on
the progress bar, so scattered sections of long videos and streams stay
visible across sessions.

Playback is merged into ranges per video; seeking, ads, a paused player
and streams without a known duration add nothing. The ranges of the 200
most recently watched videos are kept in extension storage.

The ranges are drawn per chapter below YouTube's own bars, which leaves
the played and the buffered progress untouched. The feature is off by
default and switchable under Appearance > Player.

Closes code-charity#4261
@Stiven-Gjekaj
Stiven-Gjekaj requested a review from dodieboy August 4, 2026 13:55
The player element is registered before its video element exists, so
initialising from that point could miss the first video of a page load.
The interval now starts right away and attaches the tracking once the
video shows up.
@Stiven-Gjekaj Stiven-Gjekaj self-assigned this Aug 8, 2026
@Stiven-Gjekaj
Stiven-Gjekaj requested review from raj921 and rajanarahul93 and removed request for dodieboy August 15, 2026 09:38

@rajanarahul93 rajanarahul93 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @Stiven-Gjekaj, Thanks for the PR. But it would be good if you could attach screenshots so that they can help in the review process, and it can be faster

@Stiven-Gjekaj

Copy link
Copy Markdown
Contributor Author

Thanks @rajanarahul93 Will do. I'm away on vacation right now, so I'll add screenshots as soon as I'm back home.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡Display watched sections of the video on the seek bar

2 participants