mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-10-06 22:32:41 +07:00
fix: Ensure play icon (SeekIndicator) stays centered in embed view regardless of window size
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user