Fix: Remove duplicate controls in QuadVideoPlayer
- Hide default OverlayVideoPlayer controls (.video-controls) - Hide large play button overlay (.play-overlay) - Keep only the new custom individual controls per quadrant - Clean interface with single set of controls that appear on hover
This commit is contained in:
parent
fdc8de2c99
commit
e66d89e1a1
|
|
@ -181,6 +181,18 @@ class QuadVideoPlayer {
|
|||
closeBtn.style.display = 'none';
|
||||
}
|
||||
|
||||
// Hide the default video controls since we're adding our own
|
||||
const defaultControls = player.overlayElement.querySelector('.video-controls');
|
||||
if (defaultControls) {
|
||||
defaultControls.style.display = 'none';
|
||||
}
|
||||
|
||||
// Hide the large play button overlay since we have our own controls
|
||||
const playOverlay = player.overlayElement.querySelector('.play-overlay');
|
||||
if (playOverlay) {
|
||||
playOverlay.style.display = 'none';
|
||||
}
|
||||
|
||||
// Create individual controls for this quadrant
|
||||
this.createIndividualControls(player, index);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue