mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-10 09:28:53 -05:00
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.
This commit is contained in:
parent
30fdfaf452
commit
62ce066910
@ -2754,13 +2754,13 @@ function VideoJSPlayer({ videoId = 'default-video' }) {
|
||||
// Initial sync
|
||||
syncProgressVisibility();
|
||||
|
||||
// if (isEmbedPlayer) {
|
||||
// Initial sync - hide until video starts
|
||||
progressEl.style.opacity = '0';
|
||||
progressEl.style.visibility = 'hidden';
|
||||
// }
|
||||
// For embed players only, hide until video starts
|
||||
if (isEmbedPlayer) {
|
||||
progressEl.style.opacity = '0';
|
||||
progressEl.style.visibility = 'hidden';
|
||||
}
|
||||
|
||||
// Show when video starts
|
||||
// Show when video starts (for embed players) or ensure visibility (for regular players)
|
||||
const showOnPlay = () => {
|
||||
syncProgressVisibility();
|
||||
playerRef.current.off('play', showOnPlay);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user