• Admiral Patrick@dubvee.orgOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      3 months 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 months 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 months 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 months 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.