I simplified it a bit. Reddit blocks embeds with CORS or something (and I think Imgur at some point did too) so you do need a deal.
For YouTube, you need to get a special embed URL, like https://youtube.com/embed/videoIDhere (or with the domain youtube-nocookie.com if you’re cool). That’s easy to generate but if your site includes embedded YouTube videos it also means visitors agree to their ToS, and Lemmy devs don’t want that. Believing in net neutrality, they would need to enable ALL iframe embeds from ALL websites, which could easily get messy with tracking and whatnot. As for Imgur, the default (and the most frequent) way people get an image URL is the album URL even for single images. You’d need to contact Imgur to query the number of images and their URLs to enable the kind of embeds you’re looking for. AFAIK, Reddit does that but it probably costs them money for an API key.
I simplified it a bit. Reddit blocks embeds with CORS or something (and I think Imgur at some point did too) so you do need a deal.
For YouTube, you need to get a special embed URL, like
https://youtube.com/embed/videoIDhere
(or with the domainyoutube-nocookie.com
if you’re cool). That’s easy to generate but if your site includes embedded YouTube videos it also means visitors agree to their ToS, and Lemmy devs don’t want that. Believing in net neutrality, they would need to enable ALL iframe embeds from ALL websites, which could easily get messy with tracking and whatnot. As for Imgur, the default (and the most frequent) way people get an image URL is the album URL even for single images. You’d need to contact Imgur to query the number of images and their URLs to enable the kind of embeds you’re looking for. AFAIK, Reddit does that but it probably costs them money for an API key.Understandable, thanks for the info!