From cd7cbfe13b41f3fa14b095c6bae0235e33cf0c79 Mon Sep 17 00:00:00 2001 From: dwindown Date: Thu, 1 Jan 2026 01:01:41 +0700 Subject: [PATCH] Fix video player chapters, time format, and access control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Changes ### Chapter Time Format Support - Added HH:MM:SS format support in addition to MM:SS - Updated time parsing to handle variable-length inputs - Updated time display formatter to show hours when > 0 - Updated input placeholder and validation pattern - Updated help text to mention both formats ### Video Player Improvements - Added fullscreen button to Plyr controls - Added quality/settings control to Plyr controls - Fixed accent color theming with !important CSS rules - Removed hardcoded default accent color (#f97316) - Updated Bootcamp and WebinarRecording pages to use empty string initial state ### Access Control & Security - Added transparent CSS overlay to block YouTube UI interactions - Disabled YouTube native controls (controls=0, disablekb=1, fs=0) - Set iframe pointer-events-none to prevent direct interaction - Prevents members from copying/sharing YouTube URLs directly - Preserves Plyr controls functionality through click handler ### Files Modified - src/components/admin/ChaptersEditor.tsx: Time format HH:MM:SS support - src/components/VideoPlayerWithChapters.tsx: Security overlay & theming fixes - src/pages/Bootcamp.tsx: Accent color initialization fix - src/pages/WebinarRecording.tsx: Accent color initialization fix 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/components/VideoPlayerWithChapters.tsx | 41 +++++++++++++++------- src/components/admin/ChaptersEditor.tsx | 32 +++++++++++++---- src/pages/Bootcamp.tsx | 2 +- src/pages/WebinarRecording.tsx | 2 +- 4 files changed, 57 insertions(+), 20 deletions(-) diff --git a/src/components/VideoPlayerWithChapters.tsx b/src/components/VideoPlayerWithChapters.tsx index 8c21556..b2dda63 100644 --- a/src/components/VideoPlayerWithChapters.tsx +++ b/src/components/VideoPlayerWithChapters.tsx @@ -26,7 +26,7 @@ export const VideoPlayerWithChapters = forwardRef - {youtubeId && ( -