Remove forced autoplay for embedded videos
Update VideoPage.tsx to remove the 'autoplay=1' query parameter from the iframe src attribute for embedded videos. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 344ec1e0-1186-4058-bbff-2e9619a7b1e0 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/344ec1e0-1186-4058-bbff-2e9619a7b1e0/zJYuV6w
This commit is contained in:
parent
81ea7abde1
commit
3b988f2566
@ -454,7 +454,7 @@ export default function VideoPage() {
|
||||
/>
|
||||
{currentVideo.videoUrlIframe ? (
|
||||
<iframe
|
||||
src={`${currentVideo.videoUrlIframe}${currentVideo.videoUrlIframe.includes('?') ? '&' : '?'}autoplay=1`}
|
||||
src={currentVideo.videoUrlIframe}
|
||||
className="absolute inset-0 w-full h-full"
|
||||
style={{ pointerEvents: 'auto' }}
|
||||
frameBorder="0"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user