Skip to content

Timestamp sharing seems to be broken with Link option #2302

Open

Description

@JoeRoddy

To reproduce:

  1. generate link:
Image
  1. open link with timestamp, video starts at the beginning:
Screen.Recording.2026-10-26.-.under.10MB.mp4

Activity

  1. changed the title [-]Timestamp sharing seems to be broken[/-] [+]Timestamp sharing seems to be broken with Link option[/+] on Oct 26, 2026
  2. JoeRoddy commented on Oct 26, 2026

    @JoeRoddy
    Author

    [Codex TUI - gpt-6.1-sol - xhigh]

    I traced the timestamp-sharing behavior through the current codebase and found what looks like the root cause.

    The URL timestamp is parsed correctly, but the YouTube player's click handler never uses it.

    There's a second related issue in [+layout.svelte](https://github.com/syntaxfm/website/blob/main/src/routes/%28site%29/show/%5Bshow_number%5D/%5Bslug%5D/%2Blayout.svelte#L34-L44): the Play Episode button only applies the URL timestamp when starting a different episode or when the player is in its initial state. If that episode is already loaded, the button resumes playback instead of seeking to the shared timestamp.

    Suggested fix: Apply the URL timestamp consistently across playback entry points, including the YouTube preview and cases where the episode is already loaded.

    The existing [player.play_timestamp(show, seconds)](https://github.com/syntaxfm/website/blob/main/src/state/player.ts#L253-L272) method already supports timestamp-based playback and accounts for potential differences between audio and video timelines. Reusing it would be preferable to duplicating the logic.

    I'd also recommend adding regression tests for fresh visitors and returning listeners opening timestamped links.

    One additional observation: [ShareActions.svelte](https://github.com/syntaxfm/website/blob/main/src/lib/share/ShareActions.svelte#L46-L51) generates timestamps using $player.audio.currentTime, even when the user is watching video. That could produce incorrect shared timestamps independently of the playback bug.

    This is based on source-code inspection, not a confirmed browser reproduction.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions