From eb29cb0b7e5dbfc23f1ca7030724c2dc7fef950c Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Thu, 28 Aug 2025 17:41:55 +0000 Subject: [PATCH] Improve video playback by integrating HLS.js for adaptive streaming Replace the iframe embed with a video player utilizing HLS.js for adaptive streaming and update the hls.js dependency to version 1.6.11. 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/52uJ2fJ --- client/src/pages/VideoPage.tsx | 33 ++++++++++++++++++++++++--------- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 29 insertions(+), 14 deletions(-) diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 502d6f4..598a611 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -34,6 +34,7 @@ const formatDate = (date: Date | string): string => { import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Share2, X, Edit3, Search } from "lucide-react"; +import Hls from "hls.js"; import { apiRequest } from "@/lib/queryClient"; import { FacebookShareButton, @@ -254,16 +255,30 @@ export default function VideoPage() {
{/* Main video section */}
- {/* Video player using original Bunny.net iframe */} + {/* Video player with HLS.js */}
-