cross-posted from: https://sh.itjust.works/post/29792601

Hi,

I want to take a little slice of the time I spend watching videos on Youtube and give that slice over to Peertube. I don’t mean all of it, given I watch far too much Youtube, but a slither which I hope to grow as Peertube hopefully matures.

As such I don’t want to have to make a Peertube account, I want to get Peertube videos straight into my Lemmy feed. To an extent I’ve already done this, but the videos are just links to the Peertube instance and aren’t embedded.

And the other issue is that the comments section is, well, a mess. Lemmy hardly syncs the comments and only does so for comments from other Lemmy instances and the videos Peertube instance.

The first issue feels relatively solvable, Peertube embeds. The second feels like something to do with how activity pub works and as such I have no idea.

I do feel that Peertube is a platform that needs the most support from other platforms in the form of integration, as it’s got a very uphill battle ahead of it, and it’s the first one I’ve noticed. but stronger integration between fediverse platforms on Lemmy would doubtless benefit not just those platform but Lemmy as well.

I thought I would post this and get peoples thoughts

  • Andrew@piefed.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    As Admiral Pat mentions, embeds are easy enough. I don’t know how Tesseract does it, but a low-tech solution is to just replace ‘watch’ in the URL with ‘embed’ and stick it in a iframe. From Lemmy’s GitHub, it looks like there’s been work on this, but I’m not familiar enough with it to know whether it’s for future versions that haven’t been released yet.

    New videos used to come in to Lemmy as expected. There’s been some regression that stopped it. It’s possible to bring them in manually though (by searching for the URL), and - like with embeds - it’s possible that it’s been fixed but not yet released.

    PT’s videos channels are ActivityPub Group types like Lemmy’s communities, but it doesn’t handle federation the same way. It does it in a way that’s more compatible with Mastodon. Lemmy’s communities Announce everything they receive (posts, comments, votes, etc) and so if you receive that Announce, then as long as you trust the community, you can trust that the contents haven’t been changed and process it. PT’s video channels only Announce new posts (so on Mastodon, it appears as if the channel has Boosted content by the channel owner), but for everything else, it’s a combination of sending out a ‘post update’ (which is essentially an invitation to query the outboxes it provides for votes and comments), and just flinging out the comment as is, without the HTTP signature. If you get that comment, then you can either use the LD signature that Mastodon includes to verify, or you can look at the ID, and fetch it from it’s source. As such, Lemmy’s federation model is mostly Push-based, whereas PeerTube’s is a bit of Push, and a lot more Pull.