You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -258,6 +258,7 @@ The most minimalist implementation requires two props: `id` from the YouTube you
258
258
| playlistCoverId | string | The ids for playlists did not bring the cover in a pattern to render so you'll need pick up a video from the playlist (or in fact, whatever id) and use to render the cover. There's a programmatic way to get the cover from YouTube API v3 but the aim of this component is do not make any another call and reduce requests and bandwidth usage as much as possible |
259
259
| poster | string. One of `default``mqdefault``hqdefault``sddefault``maxresdefault`| Defines the image size to call on first render as poster image. See: [https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api](https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api)|
260
260
| rel | string | Default `preload`. allows for prefetch or preload of the link url |
261
+
| thumbnail | string | Pass an optional image url to override the default poster and set a custom poster image |
261
262
| webp | boolean | Default `false`. When set, uses the WebP format for poster images |
262
263
| wrapperClass | string | Pass the string class that wraps the iFrame |
0 commit comments