Skip to content

Captions from the previous media aren't cleared when loading a file from Recents #356

Description

@maboa

Loading a file from Recents doesn't clear the previously-loaded media's captions. The new file's captions render, but the old caption track is still shown too — two caption sets stacked over the video.

Repro (see screenshot):

  1. Start with the default intro media (captions present).
  2. Load a different file from Recents.
  3. The video shows the new file's captions and a leftover caption from the intro media at the same time.

Expected: loading new media (via Recents, or any media swap) clears the old captions/VTT cues so only the current file's captions display.

Likely area: on load the caption <track id="hyperplayer-vtt"> / video.textTracks cues aren't reset — the previous file's cues persist alongside the regenerated ones. The Recents path wipes .transcript-holder and re-inits, but the caption track on #hyperplayer isn't cleared/rebuilt cleanly.

Possibly related: the doubling-up of captions from a single video when clicking around the transcript — likely the same root cause (stale/duplicate tracks or cues). See #287 ("Occasionally two sets of captions are shown contemporarily"); this may be a dupe or sibling of it.

Notes: Chrome/Safari priority.

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