YouTube iframe with cross-browser autoplay and enhanced privacy features (DSGVO)

<iframe allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen frameborder="0" height="1080" src="{{ videoId }}?autoplay=1" type="text/html" width="1920"></iframe>
This iframe will load a YouTube-Player. The associated video will start automatically (autoplay). This version of the YouTube-Player iframe is DSGVO-compliant.

Note: replace {{ videoID }} with an actual YouTube-Video id.

# iframe parameter "allow"
- "accelerometer" Unknown (from
- "autoplay" see
- "fullscreen" see
- "encrypted-media" see
- "picture-in-picture" see

# iframe parameter "allowfullscreen"
Probably a fallback (?) for 'allow: "autoplay"' see

# YouTube-Player parameter (in iframe parameter "src")
*autoplay* Enabled Autoplay (may only work with above iframe parameter "allow" or with YouTube-Player parameter "mute" set to "1".

More available YouTube-Player parameters see

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.