Skip to content

Fix bookmark time calculation for livestreams#1821

Open
coolgirl19 wants to merge 5 commits intoTUM-Dev:devfrom
coolgirl19:bookmarkfix
Open

Fix bookmark time calculation for livestreams#1821
coolgirl19 wants to merge 5 commits intoTUM-Dev:devfrom
coolgirl19:bookmarkfix

Conversation

@coolgirl19
Copy link
Copy Markdown
Contributor

@coolgirl19 coolgirl19 commented Apr 30, 2026

Motivation

Fixes #1243.

During a livestream, player.currentTime() returns tab-session time, not lecture-elapsed time. This caused wrong bookmark timestamps and incorrect seekbar positions.

Also, fixes several other smaller findings along the way to improve code quality.

Testing

  1. Recording: seek to position, open bookmark dialog → matches player time, static when paused
  2. Livestream simulation: inject [document.body.dataset.streamStartTime = String(Date.now() - 5 * 60 * 1000)] open dialog → shows ~5:00, increments on reopen

@coolgirl19 coolgirl19 marked this pull request as ready for review April 30, 2026 20:17
@alexanderstephan
Copy link
Copy Markdown
Contributor

@coolgirl19 will fix the formatting errors tomorrow

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.

Incorrect behaviour of bookmarks during streaming

2 participants