Skip to content

fix: show the load error for video and audio files that can't be played - #4251

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/preview-media-load-error
Nov 6, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/preview-media-load-error

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Video and audio files that can't be played now show the same "Failed to load" error in the preview as broken images, instead of an empty player stuck at 0:00.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: MediaVideo reloads a signed URL once and then reports the error, blob URLs fail right away, stale errors after switching files are ignored; MediaAudio reports source and element errors; App shows the error state for both and when a reload returns the same URL
  • test case 2: browser: broken mp4/mp3 show the error as a logged-in user (opened several times) and on a password-protected public link; valid mp4/webm/mp3 still play; next/prev between broken and valid files works

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear force-pushed the fix/preview-media-load-error branch from 8695c76 to b9a4bdc Compare November 6, 2026 11:01
@AlexAndBear
AlexAndBear merged commit dcadea6 into main Nov 6, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/preview-media-load-error branch November 6, 2026 11:21
@openclouders openclouders mentioned this pull request Nov 6, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preview shows an empty player for video or audio files that can't be played

2 participants