Make editor audio-only proof#1706
Conversation
Make sure the editor deals reasonably well with audio-only tracks. Includes: - Displaying a little image for the player if there is no video stream. - Make sure the track selection makes sense (don't display a video stream for an audio only track, don't allow users to deselect all tracks) - Disable thumbnail generation for audio-only tracks, but keep thumbnail generation.
|
This pull request is deployed at test.editor.opencast.org/1706/2026-05-28_14-01-43/ . |
snoesberger
left a comment
There was a problem hiding this comment.
Thank you for improving the editor's ability to handle audio-only files!
My tests were successful, I just have a few minor points to mention:
- In dark mode, the video-off.png image is barely visible:

Ideally, the image would behave in the same way as the menu items. - Once this PR has been merged, the default Opencast workflow should be changed in the Opencast repository as you described.
- It would probably be also a good idea to change the default values for the trackSelection of the editor config
etc/ui-config/mh_default_org/editor/editor-settings.toml:
[trackSelection]
# If the track selection appears in the main menu
# Type: boolean
# Default: true
#show = true
# Ensure that at least one video stream remains selected
# Typically, the track selection ensures that at least one video stream
# remains selected. If you would like your users to be able to create selections
# with only audio streams, set this to false.
# Default: true
atLeastOneVideo = false
With the way we do it now, we can't change the color of the audio only icon, as it is effictively an image. But we can change the background for the icon instead. Also fixes an issue where themed css was not properly applied to the react player.
|
I am not sure if setting |
OK, then. Let's leave it as it is. |
Fixes #1636.
Make sure the editor deals reasonably well with audio-only tracks.
Includes:
How to test this
The default community workflows attempt to circumvent the audio-only issue somewhat by adding dummy video track consisting of one image to the preview tracks for the editor. To generate true audio-only preview tracks for testing, you will want to change the relevant part in
etc/workflows/partial-previewto something like this:Make sure the editor still behaves reasonably for normal video files as well.
Screenshot: