From fd760e610a1c879d7384d776f07c9c0f80819c33 Mon Sep 17 00:00:00 2001 From: Cesar Alcazar Date: Mon, 19 Oct 2026 17:05:16 -0600 Subject: [PATCH] qhkr2z22o: Prefer hls.js and fall back to the thumbnail when video cannot play --- src/components/VideoPlayer.tsx | 55 ++++++++++++++++++++-------------- src/lib/video-playback.ts | 10 +++++-- tests/video-playback.test.ts | 7 +++-- 3 files changed, 44 insertions(+), 28 deletions(-) diff --git a/src/components/VideoPlayer.tsx b/src/components/VideoPlayer.tsx index be96a78..dfb5f63 100644 --- a/src/components/VideoPlayer.tsx +++ b/src/components/VideoPlayer.tsx @@ -9,9 +9,12 @@ export interface VideoPlayerProps { label: string; } +const UNPLAYABLE = "Video can't be played here."; + /** - * Real