8 Commits

Author SHA1 Message Date
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
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
3031a04914 Make autoplay toggle icon size dynamic
Updated AutoplayToggleButton to set SVG icon size based on PlayerConfig.controlBar.fontSize. Also changed the default fontSize in playerConfig from 26 to 16 for better scaling.
2025-10-09 15:49:33 +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
40816e6a12 Add centralized video player configuration file
Introduces playerConfig.js to centralize video player customization options, including progress bar position and color settings.
2025-10-09 13:51:24 +03:00