saiballo/embed-youtube-component ? reverse-engineered prompt
Reverse engineered prompt
Build me a clean, reusable web component for embedding YouTube videos on a site in a GDPR friendly way.
It should let me drop in something like a simple custom tag with a YouTube video ID, and only create the real iframe after the user clicks Play. I want support for a custom poster image, a built in fallback image if that poster fails, and an option to use YouTube’s no cookie domain for better privacy. Make it responsive in a 16:9 layout, easy to style, and accessible with sensible button text and aria labels.
Please also include the useful extras from the README, like optional global settings, a way to pass custom iframe parameters, a pause when the video scrolls out of view, and an SEO friendly schema snippet. If it helps, look up current docs online for any YouTube embed details before wiring it up.
Are you gonna build this?
make sure you review the code using coderabbit