From 5f7d922f927934ba416d654a9b4cc6aa17236021 Mon Sep 17 00:00:00 2001 From: fahed Date: Sun, 8 Feb 2026 22:50:45 +0300 Subject: [PATCH] Add video thumbnails and playback in Assets Video assets now show their first frame as a thumbnail in the grid instead of a generic Film icon, and the detail modal includes a video player with controls. Co-Authored-By: Claude Opus 4.6 --- client/src/components/AssetCard.jsx | 15 +++++++++++++-- client/src/pages/Assets.jsx | 7 +++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/client/src/components/AssetCard.jsx b/client/src/components/AssetCard.jsx index 2e0c28f..53da740 100644 --- a/client/src/components/AssetCard.jsx +++ b/client/src/components/AssetCard.jsx @@ -18,6 +18,8 @@ const formatFileSize = (bytes) => { export default function AssetCard({ asset, onClick }) { const TypeIcon = typeIcons[asset.type] || File const isImage = asset.type === 'image' + const isVideo = asset.type === 'video' + const hasPreview = (isImage || isVideo) && asset.url return (
+ ) : isVideo && asset.url ? ( +