190 Commits

Author SHA1 Message Date
Yiannis Christodoulou
a4f0c742a0 Improve VideoJS control bar layout and responsiveness
Added CSS rules to prevent control bar button overflow, prioritize essential controls, and hide less important buttons on smaller screens. Also removed legacy VideoJS static assets no longer in use.
2025-10-17 15:52:23 +03:00
Yiannis Christodoulou
6f3ed46413 Add audio sample and update video sample assets
Moved sample-media-file.json to src/assets, updated subtitle info with a new URL, and added a new sample-media-file.mp3.json for audio testing. These changes support improved handling and testing of both video and audio media in the VideoJSPlayer component.
2025-10-17 15:46:46 +03:00
Yiannis Christodoulou
178b5ed37c audio poster 2025-10-17 14:13:12 +03:00
Yiannis Christodoulou
2a12fec89e Keep poster visible for audio embeds and update track handling
Ensures the poster image remains visible during playback for audio files in embed players by updating both JavaScript logic and CSS. Also updates subtitle track handling to set the default track and adjusts Video.js player configuration for better control over native and emulated tracks.
2025-10-17 14:05:38 +03:00
Yiannis Christodoulou
55c701e055 fix: Adjust subtitle position when controls are visible 2025-10-17 11:31:39 +03:00
Yiannis Christodoulou
40d13e8bd0 Update Greek subtitles timing in sample VTT file
Adjusted the timing of subtitle cues in sample-subtitles-greek.vtt to better align with the video content.
2025-10-17 11:29:45 +03:00
Yiannis Christodoulou
4772c11305 fix Format segments data for API request - use ref to get latest segments and sort by start time 2025-10-16 18:38:46 +03:00
Yiannis Christodoulou
0854eabd7f Reset control bar behavior after end screen events
Adds a method to reset the control bar to its default auto-hide behavior after the end screen is hidden, when auto-playing the next video, and during cleanup. Ensures the control bar does not remain visible unintentionally after video end or transitions.
2025-10-16 18:04:16 +03:00
Yiannis Christodoulou
03d62909b4 audio poster image 2025-10-16 17:19:59 +03:00
Yiannis Christodoulou
48e632c17f Improve icon size calculation for AutoplayToggleButton
Icon size is now calculated in pixels based on em units from PlayerConfig, with scaling and sensible defaults. Added defensive checks to ensure iconSize is always a valid number, improving reliability across device types.
2025-10-16 17:13:44 +03:00
Yiannis Christodoulou
af7b4f6212 Hide fullscreen and PiP controls for audio and touch devices
Updated VideoJSPlayer to hide the fullscreen toggle for audio files and the picture-in-picture toggle for both audio files and touch devices, improving the control bar UI for these scenarios.
2025-10-16 16:55:05 +03:00
Yiannis Christodoulou
84ed74d40d Increase mobile caption font size to 13
Updated the mobileFontSize setting in the captions config from 10 to 13 to improve readability on mobile devices.
2025-10-16 16:19:20 +03:00
Yiannis Christodoulou
219e80e9e2 Scope fullscreen button size to hover-capable devices
Wrapped the fullscreen button SVG sizing rules in a media query targeting devices with hover and fine pointer capabilities. This prevents the size override from affecting touch devices.
2025-10-16 15:50:56 +03:00
Yiannis Christodoulou
d955576a7e Center fullscreen button and adjust its size
Added CSS rules to center the fullscreen button's SVG and set its width and height to 30px for improved alignment and appearance.
2025-10-16 15:48:21 +03:00
Yiannis Christodoulou
166882558d Hide load progress bar in VideoJSPlayer seek bar
Set loadProgressBar to false in the seekBar config to hide the buffered/loaded progress indicator in the VideoJSPlayer component.
2025-10-16 15:43:43 +03:00
Yiannis Christodoulou
aa458a1a31 Add sample media file and update VideoJSPlayer
Added a comprehensive sample-media-file.json for use with the video player. Updated VideoJSPlayer.jsx to support or utilize the new sample media file, likely for development or testing purposes.
2025-10-16 15:16:11 +03:00
Yiannis Christodoulou
276bf6a875 Standardize z-index hierarchy for VideoJS overlays
Introduced a Z-INDEX-HIERARCHY.md documentation file and updated z-index values across overlay and control CSS files to enforce a consistent stacking order. Ensures tooltips are always on top, menus and chapters overlays are above informational overlays, and end screen overlays remain at the base of the overlay stack. This improves UI layering logic and user interaction reliability.
2025-10-16 14:47:23 +03:00
Yiannis Christodoulou
88d6ef3700 Increase default font size in player config
Updated the fontSize property from 12 to 14 in the player configuration to improve text readability.
2025-10-16 13:42:04 +03:00
Yiannis Christodoulou
211a442f29 Add default audio poster and update video player props
Added a default audio poster image and updated VideoJSPlayer to use it when no poster_url is provided. Also refactored mock media data property names for consistency.
2025-10-16 13:41:48 +03:00
Yiannis Christodoulou
13ac69bd50 Remove play icon from chapter drag handle
Updated the CustomChaptersOverlay component to always display the chapter index in the drag handle, removing the conditional play icon ('▶') for the active chapter. This simplifies the UI and ensures consistent labeling of chapter handles.
2025-10-13 01:18:21 +03:00
Yiannis Christodoulou
cf1b84d538 Hide time tooltip, mouse display, and sprite preview for audio files 2025-10-13 01:14:15 +03:00
Yiannis Christodoulou
ea67201fa5 fix: Subtitles button toggles settings menu directly to subtitles 2025-10-13 00:48:52 +03:00
Yiannis Christodoulou
c5b11505e0 Ensure time control visibility in VideoJSPlayer
Updated CSS to always display the time control in the video player across all screen sizes, while hiding the time divider. This improves consistency in the player UI.
2025-10-13 00:28:44 +03:00
Yiannis Christodoulou
6b349e5813 update assets 2025-10-11 03:33:44 +03:00
Yiannis Christodoulou
62ce066910 Hide progress bar on embed player until video starts
Restores conditional logic to hide the progress bar for embed players until playback begins, ensuring regular players display the progress bar as expected.
2025-10-11 03:17:29 +03:00
Yiannis Christodoulou
30fdfaf452 Redesign end screen overlay with compact grid and text overlays
Refactors EndScreenOverlay to use a more compact grid layout, overlays video title and meta info directly on thumbnails, and adjusts card heights for better space utilization. Updates CSS for responsive breakpoints, adds new sample videos, and improves grid configuration logic for various screen sizes. Debugging styles and logs are included for development visibility.
2025-10-11 03:09:49 +03:00
Yiannis Christodoulou
f07e5b9e5a Revert "Keep progress bar always visible in VideoJSPlayer"
This reverts commit 24e9fb4e40e6cfd2e37ba8e2a75e2b070d83c725.
2025-10-11 02:42:26 +03:00
Yiannis Christodoulou
107b8d9db0 Enhance end screen overlay with responsive grid and swiper
Redesigned the end screen overlay to support a responsive grid layout for related videos on larger screens and a horizontal swiper for small screens. Improved card consistency, added navigation indicators for the swiper, and unified styling in both CSS and JS for better user experience and maintainability.
2025-10-11 02:38:56 +03:00
Yiannis Christodoulou
24e9fb4e40 Keep progress bar always visible in VideoJSPlayer
Updated the logic to ensure the progress bar remains visible even when the control bar is hidden, except for embed players where it is hidden with controls. Also cleaned up hls_info mock data and improved initial progress bar visibility handling.
2025-10-11 02:38:49 +03:00
Yiannis Christodoulou
f787087531 Improve mobile responsiveness for settings and chapters
Adds mobile-first responsive CSS for the custom settings menu and chapters overlay, including adaptive sizing, touch-friendly interactions, and prevention of body scroll when overlays are open. Updates CustomSettingsMenu.js to detect mobile devices, handle touch events for menu items, and manage scroll locking and haptic feedback for a better mobile user experience.
2025-10-11 01:48:26 +03:00
Yiannis Christodoulou
8eb196bf74 Improve mobile UX for chapters overlay and add chapters
Enhanced the CustomChaptersOverlay component and CSS for a more responsive, touch-friendly mobile experience, including haptic feedback, scroll optimizations, and body scroll locking. Updated SubtitlesButton indicator for better alignment. Added multiple new chapters to the sample video in VideoJSPlayer.jsx for richer navigation.
2025-10-11 01:35:38 +03:00
Yiannis Christodoulou
ab96f33bf3 Enable and refine mobile play/pause touch handling
Uncomments and activates the setupMobilePlayPause function to improve mobile play/pause behavior. Removes unnecessary console.log statements and refactors the play/pause logic for clarity.
2025-10-11 01:00:00 +03:00
Yiannis Christodoulou
26cf9241c4 Show icons (play/pause/next/prev) on touch devices as we dont use native browser 2025-10-11 00:58:22 +03:00
Yiannis Christodoulou
e9431d8191 Disable touch device check in SeekIndicator show method
Commented out the early return for touch devices in the SeekIndicator's show method, allowing the indicator to display regardless of device type. This may be for testing or to support custom controls on touch devices.
2025-10-11 00:44:42 +03:00
Yiannis Christodoulou
27a6ab0755 Update video player config and progress bar visibility
Renamed 'hls_info' to '_hls_info' in mock data and restored an empty 'hls_info' object. Changed 'useRoundedCorners' to false. Added a console log for 'autoplayHandler'. Modified progress bar visibility logic to always hide initially, regardless of embed player status.
2025-10-11 00:26:26 +03:00
Yiannis Christodoulou
4642cae94b Improve autoplay handling for Firefox compatibility
Adds Firefox-specific detection and logic to the AutoplayHandler to better handle autoplay restrictions in Firefox. This includes user gesture detection, delayed playback attempts, custom error handling, and user notifications to prompt interaction for enabling playback and sound. The changes ensure a more reliable autoplay experience across browsers, especially addressing Firefox's stricter autoplay policies.
2025-10-11 00:17:02 +03:00
Yiannis Christodoulou
de258e8f73 Update submenu header label to 'Captions'
Changed the submenu header text from 'Subtitles/CC' to 'Captions' for consistency and clarity in the CustomSettingsMenu component.
2025-10-10 11:10:26 +03:00
Yiannis Christodoulou
76e85d2577 Improve subtitles menu and button behavior in VideoJS
Adds direct access to the subtitles submenu from the subtitles button, updates the button's active state based on subtitle selection, and dispatches a custom event on subtitle state changes. Also cleans up unused static video.js files and enables the SubtitlesButton CSS.
2025-10-10 11:06:13 +03:00
Yiannis Christodoulou
fef43efaa9 Refactor video player tooltips and remove static assets
Moved tooltip logic for custom video player controls (autoplay, next video, settings) into VideoJSPlayer.jsx, removing direct 'title' attributes from button components. Improved dynamic tooltip updates for the autoplay toggle. Removed unused static video_js CSS and JS assets.
2025-10-10 10:46:31 +03:00
Yiannis Christodoulou
816135266c Skip empty tooltips 2025-10-10 10:30:29 +03:00
Yiannis Christodoulou
4bec15fad5 Remove debug console.log statements from VideoJSPlayer
Eliminated multiple console.log statements used for debugging in the VideoJSPlayer component to clean up the code and reduce unnecessary console output.
2025-10-10 09:39:18 +03:00
Yiannis Christodoulou
5da377a8a5 Make control bar spacer fully transparent
Updated the spacer element in the video player's control bar to be fully transparent and non-interactive by setting background, border, outline, boxShadow, opacity, and pointerEvents styles. This ensures the spacer does not affect the visual appearance or user interaction.
2025-10-10 09:36:23 +03:00
Yiannis Christodoulou
d8cfc8be7b build assets 2025-10-10 09:31:48 +03:00
Yiannis Christodoulou
9a6f2b1394 Improve video player button styles and focus handling
Added pointer cursor to video player buttons for better UX. Updated focus styles to ensure the video player is focusable without showing an outline.
2025-10-10 09:18:33 +03:00
Yiannis Christodoulou
b2279f73f6 Enable user actions and update progress bar styles
Uncommented and enabled click, tap, and doubleClick user actions in VideoJSPlayer. Adjusted progress bar margin and padding for improved layout. Cleaned up VideoJSPlayerRoundedCorners.css by removing commented-out gradient overlay and related styles.
2025-10-10 09:11:40 +03:00
Yiannis Christodoulou
f000b4433b Update playerConfig.js 2025-10-10 02:02:01 +03:00
Yiannis Christodoulou
7a7d58e680 Set width for NextVideoButton in video controls
Added an explicit width of 2.5em to the NextVideoButton to ensure consistent sizing in the video player controls.
2025-10-10 01:59:18 +03:00
Yiannis Christodoulou
73a89c72df Ensure remaining time is always visible in VideoJS
Updated CSS to force .custom-remaining-time and .vjs-remaining-time elements to be visible and displayed as flex on all screen sizes. This ensures the remaining time display is consistently shown regardless of responsive layout or device.
2025-10-10 01:56:06 +03:00
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