<iframe allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen frameborder="0" height="1080" src="https://www.youtube-nocookie.com/embed/{{ 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 https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
- "fullscreen" see https://stackoverflow.com/questions/27723423/youtube-iframe-embed-full-screen
- "encrypted-media" see https://support.google.com/youtube/answer/171780?hl=en
- "picture-in-picture" see https://support.google.com/youtube/answer/7552722?co=GENIE.Platform%3DAndroid&hl=en
# iframe parameter "allowfullscreen"
Probably a fallback (?) for 'allow: "autoplay"' see https://www.allowfullscreen.com/iframe
# 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 https://developers.google.com/youtube/player_parameters
Note: replace {{ videoID }} with an actual YouTube-Video id.
# iframe parameter "allow"
- "accelerometer" Unknown (from
- "autoplay" see https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
- "fullscreen" see https://stackoverflow.com/questions/27723423/youtube-iframe-embed-full-screen
- "encrypted-media" see https://support.google.com/youtube/answer/171780?hl=en
- "picture-in-picture" see https://support.google.com/youtube/answer/7552722?co=GENIE.Platform%3DAndroid&hl=en
# iframe parameter "allowfullscreen"
Probably a fallback (?) for 'allow: "autoplay"' see https://www.allowfullscreen.com/iframe
# 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 https://developers.google.com/youtube/player_parameters
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.