Skip to content

Commit 568715e

Browse files
Merge pull request #41 from microsoft/feb-updates
cookie consent: video player no cookies
2 parents 1bfe176 + 3ea531f commit 568715e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/src/components/VideoPlayer/VideoPlayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
3939
const thumbnailUrl = `https://img.youtube.com/vi/${videoId}/maxresdefault.jpg`;
4040

4141
// Build the iframe src with autoplay parameter
42-
const iframeSrc = `https://www.youtube.com/embed/${videoId}?rel=0autoplay=${autoplay ? '1' : '0'}`;
42+
const iframeSrc = `https://www.youtube-nocookie.com/embed/${videoId}?rel=0autoplay=${autoplay ? '1' : '0'}`;
4343

4444
return (
4545
<div className={`w-full max-w-7xl ${aspectRatio} relative rounded-lg overflow-hidden shadow-lg ${className}`}>

0 commit comments

Comments
 (0)