this post was submitted on 24 Nov 2024
164 points (95.1% liked)
Videos
14422 readers
292 users here now
For sharing interesting videos from around the Web!
Rules
- Videos only
- Follow the global Mastodon.World rules and the Lemmy.World TOS while posting and commenting.
- Don't be a jerk
- No advertising
- No political videos, post those to !politicalvideos@lemmy.world instead.
- Avoid clickbait titles. (Tip: Use dearrow)
- Link directly to the video source and not for example an embedded video in an article or tracked sharing link.
- Duplicate posts may be removed
Note: bans may apply to both !videos@lemmy.world and !politicalvideos@lemmy.world
founded 2 years ago
MODERATORS
I'm an amateur web dev, is that really all it takes with HTML?
More or less if you use JS to fetch the link and parse the meta tags in its header. Lemmy does that when you submit a post with a link, and it'll pull the title, description, image, and video properties and include them with the post detail.
From there, it's just a matter of detecting those and rendering them.
og
is shorthand for open graph, it’s a standard Facebook started for capturing page metadata to use in embedded previews and has caught on to wide adoption. It’s not an official HTML tag but it’s very ubiquitous today.