75 Commits

Author SHA1 Message Date
Yiannis Christodoulou
115af7497b build assets 2025-10-10 01:45:47 +03:00
Yiannis Christodoulou
e1108a9ba6 Support moved progress control in markers and sprite preview
Updated ChapterMarkers and SpritePreview components to locate the progress control even if it has been moved out of the control bar, using a reference stored in customComponents. Also updated VideoJSPlayer to store customComponents on the player instance for easier access by child components.
2025-10-10 01:39:33 +03:00
Yiannis Christodoulou
59f65bdd21 Refine progress bar positioning and styling in VideoJSPlayer
Enhanced the logic for moving and styling the progress bar relative to the control bar, including improved style resets and visibility transitions. Updated the default non-touch progress bar position from 'top' to 'bottom' in playerConfig.js for a more native touch style experience.
2025-10-10 01:20:09 +03:00
Yiannis Christodoulou
4acdec7474 Adjust control bar font size for touch devices
Added a separate mobileFontSize to PlayerConfig and updated AutoplayToggleButton, NextVideoButton, and VideoJSPlayer to use a smaller font size for control bar icons and text on touch devices. This improves UI consistency and usability across device types.
2025-10-10 01:01:23 +03:00
Yiannis Christodoulou
9896eb0376 Refactor control and progress bar styling logic
Removed unnecessary setTimeouts for applying control bar and progress bar styles, applying them synchronously instead. Updated playerConfig to set nonTouchPosition to 'top' and touchPosition to 'bottom'. Added initial sync for progress bar visibility.
2025-10-10 00:36:14 +03:00
Yiannis Christodoulou
d925bd0b5d Hide progress bar until video starts playing
Updated VideoJSPlayer to initially hide the progress bar and only show it when the video starts playing or seeking. Also commented out fixed positioning for the control bar in embed.css, likely to adjust control bar behavior for embedded players.
2025-10-10 00:26:01 +03:00
Yiannis Christodoulou
bf27cbf559 Disable touch tooltip support for standard buttons
Commented out the call to addTouchTooltipSupport in enableStandardButtonTooltips, removing touch tooltip support for standard video player buttons. This may be to address issues with tooltip behavior on mobile devices.
2025-10-10 00:19:10 +03:00
Yiannis Christodoulou
523ae2e736 Fix progress bar spacer for touch devices
Update condition to add the progress bar spacer when on touch devices, ensuring correct UI behavior regardless of nonTouchPosition setting.
2025-10-10 00:14:46 +03:00
Yiannis Christodoulou
09c643b6b1 Remove unused control bar items from VideoJSPlayer
Eliminated several control bar components such as playToggle, currentTimeDisplay, timeDivider, durationDisplay, and fullscreenToggle from the VideoJSPlayer configuration to streamline the player UI.
2025-10-09 18:32:20 +03:00
Yiannis Christodoulou
acdf11d597 Refactor progress bar styling and update config
Progress bar color styling is now always applied, not just for custom positions, by moving the relevant code outside the position check. Updated playerConfig.js to set touchPosition to 'top' and fixed the control bar backgroundColor value.
2025-10-09 18:03:46 +03:00
Yiannis Christodoulou
15c85c1c10 Refactor progress bar positioning for touch and non-touch devices
Updated VideoJSPlayer to determine progress bar position based on device type, using separate config options for touch and non-touch devices. PlayerConfig now has 'nonTouchPosition' and 'touchPosition' instead of a single 'position' property. Also set nativeControlsForTouch to false for consistent custom controls.
2025-10-09 16:34:19 +03:00
Yiannis Christodoulou
9c4aeb3134 Refactor player controls and progress bar layout
Moved native controls and progress bar positioning logic to PlayerConfig for better configurability. Separated control bar styling from progress bar layout, allowing independent application of styles. Added a spacer to the control bar to improve button alignment when the progress bar is repositioned. Cleaned up legacy code and improved maintainability.
2025-10-09 15:42:48 +03:00
Yiannis Christodoulou
9ada2cb8c9 Add configurable control bar styles to VideoJSPlayer
Introduced a new controlBar configuration in playerConfig.js to allow customization of control bar background color, height, and font size. Updated VideoJSPlayer.jsx to apply these styles dynamically, including line height for time controls.
2025-10-09 14:38:00 +03:00
Yiannis Christodoulou
ea3cdda18c Refactor progress bar placement and controls in VideoJSPlayer
Moved the progress bar below the control bar for a native touch style, with configurable positioning and styling via PlayerConfig. Removed the TestButton and related code, and updated user action options to comment out click, tap, and doubleClick behaviors. Improved progress bar visibility handling based on user activity and cleaned up related event listeners.
2025-10-09 13:51:16 +03:00
Yiannis Christodoulou
c4a3e3f383 try vertical video 2025-10-06 19:15:02 +03:00
Yiannis Christodoulou
e65954f391 Refactor embed player styles and overlay behavior
Simplifies and updates embed player CSS for YouTube-style fullscreen poster and video display, moving legacy styles to embed_OLD.css. Refines overlay visibility logic in EmbedInfoOverlay for more accurate YouTube-like behavior, and ensures embed styles are imported in VideoJSPlayer. Updates HTML to enforce full-viewport sizing and overflow handling for embedded player.
2025-10-06 13:57:54 +03:00
Yiannis Christodoulou
a29d94dcbd Remove VideoJSNew and consolidate player components
Deleted VideoJSNew.jsx and removed VideoJSPlayerNew from exports. Merged VideoJSPlayerNew.css into VideoJSPlayer.css and updated VideoJSPlayer.jsx with new features, configuration, and sample data. Refactored and enhanced VideoJSPlayer to be the main player component, updating references and improving tooltip, autoplay, and control bar logic.
2025-10-06 12:41:54 +03:00
Yiannis Christodoulou
afaab453e1 refactor everything related to video.js 2025-10-06 11:42:07 +03:00
Yiannis Christodoulou
ccfe93a0f4 Hide HLS buffer segment boundaries and update dev mode 2025-10-03 11:24:35 +03:00
Yiannis Christodoulou
94d8a70d59 Update mock media data for VideoJSPlayer
Replaces the mock video, poster, and related URLs in the development fallback data with new assets for user 'markos'. Updates encoding and HLS info to match the new video, and disables development mode by setting isDevMode to false.
2025-10-03 11:24:35 +03:00
Yiannis Christodoulou
a43316bd5b Add custom wrapper for fullscreen button in VideoJS 2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
09bd4d59b1 Style and wrap picture-in-picture button in VideoJS
Added custom CSS for the picture-in-picture button wrapper to ensure consistent sizing and alignment with other controls. Updated VideoJSPlayer.jsx to wrap the PiP button in a styled container for improved UI consistency.
2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
37464e5a86 Add custom wrapper for settings button in VideoJS 2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
9e689c88ba Add custom wrapper for autoplay toggle button 2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
73ea56c79b Add custom wrapper for volume panel 2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
d7c62530b0 Wrap buttons in custom div container 2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
e885cc7c28 fix: Improve seekbar for mobile devices 2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
0c0d9c66d2 fix: On mobile, pause the video on second tap only 2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
fa85e5768a fix: Responsive grid adjustments for different screen sizes 2025-10-03 11:24:34 +03:00
Yiannis Christodoulou
b228527924 fix: Ensure play icon (SeekIndicator) stays centered in embed view regardless of window size 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
71ad76285f feat: separate css files for better control 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
7c249dd1ef fix: Show avatar and title when video is paused/stopped in embed mode 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
5b691f3456 fix: For embed players, disable autoplay to show poster 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
e47942608d Update VideoJSPlayer.jsx 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
bb70888748 fix: Improve autoplay countdown 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
7ae9eb21e7 sample data urls for testing 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
b04ad2344c fix: Make seekbar more touch-friendly on Android 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
57616c6b81 fix: Disable tooltip on touch devices (mobile and tablets) 2025-10-03 11:24:33 +03:00
Yiannis Christodoulou
45d0665e37 feat: Helper function to check if chapters represent a meaningful chapter structure 2025-10-03 11:24:32 +03:00
Yiannis Christodoulou
71b9935d2c feat: Truncate chapter's title above the timeline thumbnail if is too long 2025-10-03 11:24:32 +03:00
Yiannis Christodoulou
f3888981db feat: Skip the autoplay if is playlist by passing the isPlayList to the video.js 2025-10-03 11:24:31 +03:00
Yiannis Christodoulou
380b537d45 feat: User rounded corners based on py value USE_ROUNDED_CORNERS 2025-10-03 11:24:31 +03:00
Yiannis Christodoulou
7f12038e60 fix: Use the correct poster url 2025-10-03 11:24:31 +03:00
Yiannis Christodoulou
d3b58bf27b chore: Do not use the full url in hls_info 2025-10-03 11:24:31 +03:00
Yiannis Christodoulou
68fa1efe87 feat: Add Embed Info Overlay Component (for embed player only) 2025-10-03 11:24:30 +03:00
Yiannis Christodoulou
a89ee7b0e0 fix: Fullscreeen left/right/play/pause arrow keys doesn't work
BUG3. Fullscreeen left / right arrows doesn't work. Even if they work, if i leave the fullscreen and then enter again they are lost.
2025-10-03 11:24:30 +03:00
Yiannis Christodoulou
5fda4610da fix: Chapter title, next video icon, play video with sound, dark opacity, fix hls, cleanup logs 2025-10-03 11:24:30 +03:00
Yiannis Christodoulou
a74f51f9cd chore: change text to chapterTitle 2025-10-03 11:24:29 +03:00
Yiannis Christodoulou
738d0d9e00 feat: Convert chapters data from backend format to required format with memoization 2025-10-03 11:24:29 +03:00
Yiannis Christodoulou
222c728909 fix:(video.js) support embed functionality and ensure videos play independently on the same page 2025-10-03 11:24:29 +03:00