Skip to content

Commit d7e1eae

Browse files
committed
chore: missing doc
1 parent 7e742de commit d7e1eae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/content/scripts/content/youtube-player.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ export interface YouTubeProps {
9595
}
9696
```
9797

98+
### Privacy
99+
100+
The `<YoutubePlayer>` component is privacy-friendly by default and sets the video host to `https://www.youtube-nocookie.com`.
101+
102+
To modify this behavior, you can set the `host` prop to `https://www.youtube.com`.
103+
104+
```vue
105+
<ScriptYouTubePlayer video-id="d_IFKP1Ofq0" :player-options="{ host: 'https://www.youtube.com' }" />
106+
```
107+
98108
#### Eager Loading Placeholder
99109

100110
The YouTube Player placeholder image is lazy-loaded by default. You should change this behavior if your video is above the fold

0 commit comments

Comments
 (0)