Skip to content

Fix subtitles not showing and list resize - #1752

Open
Arnei wants to merge 2 commits into
opencast:r/21.xfrom
Arnei:fix-subtitles-and-list-resize
Open

Arnei wants to merge 2 commits into
opencast:r/21.xfrom
Arnei:fix-subtitles-and-list-resize

Conversation

@Arnei

@Arnei Arnei commented Nov 27, 2026

Copy link
Copy Markdown
Member

Fixes two issues in the subtitles view:

  • Fixes an issue where subtitles would not be rendered onto the video in some cases.
  • Fixes an issue where resizing the window would permanently increase the total height used by the subtitles view, never to decrease again until the view was reloaded.

How to test this

Create subtitles and make sure they show up on the video. Resize the window and make the sure the CSS is not going haywire.

AI Usage

Claude Sonnet 5 was used for this.

Since the update to react-player 3, the `config` option that the video
player used is ignored. The subtitle track was never added, so subtitles
and chapter titles did not show in the video. The poster for audio-only
videos did not show either.

Add the subtitle as a `<track>` element instead and set the poster on the
video element. The Firefox workaround for subtitles is removed, as it
only worked with a single video on the page.

This commit was largely AI generated.
The list measured the space it was given, and also contributed to that
space. When the window got bigger, the list grew with it, but it never
got smaller again, and the page stayed too high. Take the list out of the
layout flow, so that it only measures.

This commit was largely AI generated.
@Arnei Arnei added the type:bug Something isn't working label Nov 27, 2026
@Arnei Arnei mentioned this pull request Nov 27, 2026
@github-actions

Copy link
Copy Markdown

This pull request is deployed at test.editor.opencast.org/1752/2026-11-27_09-17-20/ .
It might take a few minutes for it to become available.

This branch has not been deployed

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

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant