Improve video preview loading and display on the platform

Refactor HLS preview thumbnail to load videos on hover, introduce MP4 fallback, and optimize HLS settings. Update VideoCard to display static thumbnails until hover, preventing unnecessary initial video loading.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d7424866-83d1-4486-a212-ac12b4c7becf
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/d7424866-83d1-4486-a212-ac12b4c7becf/QjWGafC
This commit is contained in:
sebastjanartic
2025-08-07 12:51:03 +00:00
parent 293b3a555e
commit 809fdf8fb1
3 changed files with 88 additions and 55 deletions
-1
View File
@@ -44,7 +44,6 @@ export default function Home() {
// Update videos when new data comes in
useEffect(() => {
if (videosResponse) {
console.log('Videos response:', videosResponse);
if (offset === 0) {
setAllVideos(videosResponse.videos);
} else {