Open ghost opened 5 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?
It does not look like this repo is maintained (last commit 2018) so you'll need to make you own version.
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.
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 outerplayerParams
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/