News for hackers. Stuff that matters.
Re:YouTube embeds are bananas heavy and it’s fixable by lulzury on Sunday July 07, 2024 @02:28PM (#40899462)
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).

Re:YouTube embeds are bananas heavy and it’s fixable by sva_ on Sunday July 07, 2024 @02:33PM (#40899490)
I feel like some content creators might not be very happy about that
Re:YouTube embeds are bananas heavy and it’s fixable by dmonitor on Sunday July 07, 2024 @02:39PM (#40899530)
doing this on a broad scale is a great way to get sued
Re:YouTube embeds are bananas heavy and it’s fixable by xigoi on Sunday July 07, 2024 @02:42PM (#40899544)
So how about disallowing YouTube embeds and requiring users to upload videos?
Re:YouTube embeds are bananas heavy and it’s fixable by griftrejection on Sunday July 07, 2024 @05:11PM (#40900466)
In hostile jurisdictions, maybe. But there are servers all around the world. Take your pick.
Re:YouTube embeds are bananas heavy and it’s fixable by swyx on Sunday July 07, 2024 @07:28PM (#40901339)
username does not check out