Hacker News new | ask | show | jobs
by lulzury 708 days ago
If you have a small site or just don't want any requests to Google for privacy reasons, consider just straight-up downloading the video and embedding it in a video tag. There are yt_dlp wrappers for most popular languages (even js).

I'm pretty sure even embedding their poster thumbnail results in them getting your IP and other information so consider downloading that as well (from https://img.youtube.com/vi/[TAG]/hqdefault.jpg).

2 comments

I feel like some content creators might not be very happy about that
doing this on a broad scale is a great way to get sued
So how about disallowing YouTube embeds and requiring users to upload videos?
In hostile jurisdictions, maybe. But there are servers all around the world. Take your pick.
username does not check out