this post was submitted on 20 Dec 2024
59 points (96.8% liked)
Fediverse
28707 readers
55 users here now
A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).
If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!
Rules
- Posts must be on topic.
- Be respectful of others.
- Cite the sources used for graphs and other statistics.
- Follow the general Lemmy.world rules.
Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Tesseract has had PeerTube embed support for well over a year now. There's nothing stopping other UIs from supporting them ๐คท๐ปโโ๏ธ
https://tesseract.dubvee.org/c/veronicaexplains@tinkerbetter.tube
They work great when sharing a PeerTube link in Lemmy, but I've had issues where subscribing to a Peertube channel either doesn't pull anything or only does an initial pull of a few videos. New posts don't seem to come in. That's some Lemmy to/from Peertube federation trouble. However, on the PT posts that do come in, i can upvote/downvote and comment on them.
Neat! Since it's come up a lot in !loops@midwest.social, are there any plans on having loops embed as well? Do you know if that's something the Lemmy devs would support once for everyone, or would every client have to add support for it?
I'm 100% planning on integrating loops, but there's a problem that needs solved. The embed data returned when querying a loops link doesn't include an embed video URL (which is how most but not all of the embed media is rendered). There's also nothing in the metadata for a loops link that can derive the video URL (which is a trick I use for some other embed media or where I don't want the user to have to use the special "share" links).
I've emailed the Loops team asking if they would add the
oc:video
meta tag in the header info, but I have not heard back.If that doesn't pan out, I have tested hotlinking the video URL, and I can get that to render.
Ex: https://dubvee.org/post/2293134
Since that works, and if all else fails, I can add a server-side API endpoint to Tesseract that will fetch the loops page, parse it for the
video
tag, and essentially scrape the page to get the video link. That's messy, but I can make it work (though I'd prefer not to).Cool, that's good to hear. The good news is that if it comes down to parsing the HTML, that's pretty straightforward. I've been poking at it, and it's nice and semantic (gets turned into a regular
<video>
element by JS:And hopefully it'll get open source soon or have some way of filing bugs/feature requests. I saw that the dev created https://joinloops.org/ and is planning on putting a roadmap there soon.
I just put together a basic API endpoint and am successfully scraping the video URLs. Have a very rough integration working in dev, so I think this is going to be supported soon :)
Edit: Hell yeah!
Wow, that was quick, amazing! ๐ฅณ
Still fine tuning it, but I think it's gonna make it into the next release ๐
Hell yeah, it'll be nice to have an answer other than "๐คท" for people that want embedded loops ๐