From eb14429383fb8ef6f5142364b2b3e3d948e8571c Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 29 Aug 2025 16:18:10 +0000 Subject: [PATCH] Remove picture-in-picture mode from video player to improve user experience Remove the 'picture-in-picture' permission from the iframe allow attribute in both BunnyVideoModal and VideoPage components. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/QCN70f2 --- client/src/components/bunny-video-modal.tsx | 2 +- client/src/pages/VideoPage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/bunny-video-modal.tsx b/client/src/components/bunny-video-modal.tsx index db921b2..fb5fafb 100644 --- a/client/src/components/bunny-video-modal.tsx +++ b/client/src/components/bunny-video-modal.tsx @@ -275,7 +275,7 @@ export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos className="absolute inset-0 w-full h-full" frameBorder="0" allowFullScreen - allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope" onLoad={handleVideoPlay} title={video.title} /> diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 2483443..ff5ccb0 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -252,7 +252,7 @@ export default function VideoPage() { className="absolute inset-0 w-full h-full" frameBorder="0" allowFullScreen - allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope" onLoad={handleVideoPlay} title={currentVideo.title} />