diff --git a/client/src/components/bunny-video-modal.tsx b/client/src/components/bunny-video-modal.tsx index 927db4e..18a115b 100644 --- a/client/src/components/bunny-video-modal.tsx +++ b/client/src/components/bunny-video-modal.tsx @@ -258,40 +258,7 @@ export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos
{/* Main video player */}
-
{ - const iframe = document.querySelector('iframe'); - if (iframe && iframe.contentWindow) { - // Trigger mouse events to keep controls visible longer - try { - iframe.contentWindow.postMessage(JSON.stringify({ method: "mousemove" }), '*'); - } catch (e) { - // Ignore errors - } - } - }} - onMouseEnter={() => { - const iframe = document.querySelector('iframe'); - if (iframe && iframe.contentWindow) { - try { - iframe.contentWindow.postMessage(JSON.stringify({ method: "mouseenter" }), '*'); - } catch (e) { - // Ignore errors - } - } - }} - onClick={() => { - const iframe = document.querySelector('iframe'); - if (iframe && iframe.contentWindow) { - try { - iframe.contentWindow.postMessage(JSON.stringify({ method: "click" }), '*'); - } catch (e) { - // Ignore errors - } - } - }} - > +
{video.videoUrlIframe ? (