OriginalEXE / vidim

Background videos made easy. Supports both YouTube and self hosted videos.
MIT License
27 stars 6 forks source link

Support using youtube-nocookie.com #7

Open ghost opened 5 years ago

ghost commented 5 years ago

https://github.com/OriginalEXE/vidim/blob/795bcddbc36a0c7b2c8fd88c2e13457196367c71/src/providers/youtube.js#L87-L88

Although it does not seem to be documented in the YouTube Embed API Reference, adding in host: 'https://www.youtube-nocookie.com', to the outer playerParams object will tell the API to use the version of YouTube that does not set tracking cookies.

This is especially useful for EU websites that have GDPR concerns.

See https://portalzine.de/dev/api/youtube-iframe-api-and-cookieless-domain-solution-gdpr-dsgvo/

rangler2 commented 4 years ago

Thanks for this @strive-phil do you know if anyone has released a package of vidim that makes this change possible or do I have to customise it and make my own version?

ghost commented 4 years ago

It does not look like this repo is maintained (last commit 2018) so you'll need to make you own version.

OriginalEXE commented 4 years ago

Hey people, apologies for the lack of activity. I used to use this library for work, but have since moved on to other things and I no longer use video backgrounds. If anyone would like to take up maintenance of the repo and improve it with new features, I would gladly enable that however I can.