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

  • m_f@midwest.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 days ago

    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:

    <video-player
        poster-src="https://loopsusercontent.com/videos/85319640150794240/96649242004583579/8yjZniSLk64lxIPomBfUzr5SwMXRKGWXyHpTLruN.jpg"
        video-src="https://loopsusercontent.com/videos/85319640150794240/96649242004583579/8yjZniSLk64lxIPomBfUzr5SwMXRKGWXyHpTLruN.720p.mp4"
        username="thomasdorr"
        profile-picture="https://loopsusercontent.com/avatars/85319640150794240/v0.jpg"
        caption="Snowing in #DuluthMN"
        tags=""
        likes="8"
        comments="1"
        />
    

    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.

    • Admiral Patrick@dubvee.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      3 days ago

      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!