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

      I think Lemmy UI will treat these as embeds. If not, i’ll note just in case.

      Notifications: Voy Door Chime 1

      Calls/Ringtone: “Incoming Transmission

      Charger Connected: Power Up 1

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

          So did I, lol. If you use the image syntax for audio/video files, they should embed in most some Lemmy clients. I was trying to be all fancy.

          Edit: Apparently media embeds work in less Lemmy clients than I thought.

          • Andrew@piefed.social
            link
            fedilink
            arrow-up
            3
            ·
            3 days ago

            I think it’s asking a lot - it’s not unreasonable for libraries to convert the markdown format for embedded images into IMG SRC, but then the clients can’t play them because they’re not images. Ideally, I think, there should be different markdown for embedded videos and audio (but it doesn’t look like there’s anything official).

            These clips play for me on PieFed, but only because after the markdown translation, they get regexed into the correct AUDIO tags.

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

              Agreed, Yeah, there should be a dedicated syntax for media embeds. Lemmy-UI uses markdown-it and the extension markdown-it-html5-embed which is what extends the image syntax for audio/video. I duplicated that in Tesseract for feature parity, and Photon did as well. In both cases, we had to custom write renderers to match the Lemmy-UI syntax which is, for better or worse, the “standard” for Lemmy.

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

              Yep shows as embeds for me. I use Tesseract, but I tried in Lemmy UI, and it embedded there too. The first one is my general notification sound. I updated my earlier comment with direct links as well as the embeds.

            • SatyrSack
              link
              fedilink
              English
              arrow-up
              3
              ·
              3 days ago

              It doesn’t work on Thunder. But then again, video embeds do not work on Thunder either.