• Admiral PatrickOP
    link
    fedilink
    English
    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 PatrickOP
        link
        fedilink
        English
        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
          link
          fedilink
          33 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 PatrickOP
            link
            fedilink
            English
            23 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.

        • @ummthatguy
          link
          English
          33 days ago

          Trying in this space so as not to fuck up the original.

          or ?

          Connect doesn’t like it, but do you see anything?

          • @dohpaz42
            link
            English
            43 days ago

            It sort of works in Mlem. I have to use Quick Look, but it works.

          • Admiral PatrickOP
            link
            fedilink
            English
            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.