fix: Ensure play icon (SeekIndicator) stays centered in embed view regardless of window size

This commit is contained in:
Yiannis Christodoulou
2025-09-30 09:59:24 +03:00
parent 71ad76285f
commit b228527924
3 changed files with 53 additions and 15 deletions
@@ -2624,6 +2624,7 @@ function VideoJSPlayer({ videoId = 'default-video' }) {
// BEGIN: Add Seek Indicator Component
customComponents.current.seekIndicator = new SeekIndicator(playerRef.current, {
seekAmount: 5, // 5 seconds seek amount
isEmbedPlayer: isEmbedPlayer, // Pass embed mode flag
});
// Add the component but ensure it's hidden initially
playerRef.current.addChild(customComponents.current.seekIndicator);