video shortcode youtube nocookie not working
-
Hi there,
for the GDPR Youtube provides the “-nocookie” option.
If you click the share button at a Youtube video, you get this code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/WoQHOx6XS-E?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
If you check the privacy mode you get this:
<iframe width="560" height="315" src="https://www.youtube<strong>-nocookie</strong>.com/embed/WoQHOx6XS-E?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
I created a test page with the following code:
1 2 <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/WoQHOx6XS-E?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> 3 [video src="https://www.youtube.com/watch?v=WoQHOx6XS-E"] 4 [video src="https://www.youtube-nocookie.com/watch?v=WoQHOx6XS-E"] 5 [video src="https://www.youtube-nocookie.com/embed/WoQHOx6XS-E?rel=0"]
Number 1, 2 and 3 are working, 4 and 5 are not. I really would like to use 4 or 5 because that’s the way we’ve set up our side and we use the ‘poster=’ tag to provide our own thumbnails.
Any idea if this “youtube-nocookie.com” url can be supported? I guess this must be adjusted in the wordpress core functionality, so that the video shortcode is updated?
ThanksEDIT: Number 1 is just the url: “https://www. youtube.com/watch?v=WoQHOx6XS-E”
- The topic ‘video shortcode youtube nocookie not working’ is closed to new replies.