We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1bfe176 + 3ea531f commit 568715eCopy full SHA for 568715e
1 file changed
code/src/components/VideoPlayer/VideoPlayer.tsx
@@ -39,7 +39,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
39
const thumbnailUrl = `https://img.youtube.com/vi/${videoId}/maxresdefault.jpg`;
40
41
// Build the iframe src with autoplay parameter
42
- const iframeSrc = `https://www.youtube.com/embed/${videoId}?rel=0autoplay=${autoplay ? '1' : '0'}`;
+ const iframeSrc = `https://www.youtube-nocookie.com/embed/${videoId}?rel=0autoplay=${autoplay ? '1' : '0'}`;
43
44
return (
45
<div className={`w-full max-w-7xl ${aspectRatio} relative rounded-lg overflow-hidden shadow-lg ${className}`}>
0 commit comments