jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
606 stars 63 forks source link

Feature request: Media processor for Youtube-nocookie #30

Open JonathanTheDev opened 3 years ago

JonathanTheDev commented 3 years ago

Hello 😄

I was setting up a Jekyll site using Jekyll-spaceship's media processor for Youtube links. While doing so i did some research on Youtube and cookies with GDPR and learned that you can embed videos using a nocookie youtube url. Read more on Youtube support

The url looks like this: https://www.youtube-nocookie.com/embed/iik25wqIuFo

Creating a link like this: results in an iframe using the normal base url: https://www.youtube.com/embed/ and not https://www.youtube-nocookie.com/embed/.

I think this feature could be created simply by adding a new media processor in media-processor.rb for the nookie option.

Thanks

jeffreytse commented 3 years ago

Hi @Pizzaernam

Thanks for your request and I'm taking a consideration for this feature, any update I will update here.

Thanks and regards.