~acegiak


#69 Display gif videos in a more gif-y way. 7 hours ago

Comment by ~acegiak on ~tsileo/microblog.pub

Ah that's awesome! What's the behaviour for mouseover events on mobile like? At the moment I've got a solution that is just autoplaying regardless of mouseover which I'm quite liking especially because I'm mostly on mobile.

On Sun, Dec 4, 2022 at 5:22 AM ~tsileo outgoing@sr.ht wrote:

Hey!

I just pushed a test to enable a "GIF mode" for "videos without audio and small duration" (using JS).

It works like Mastodon:

  • show a small "GIF" overlay
  • disable controls
  • play in a loop on mouse over

Let me know how it goes!

Thanks!

-- View on the web: https://todo.sr.ht/~tsileo/microblog.pub/69#event-216393

-- regards, Ashton McAllan http://acegiak.net

#73 Media Proxy Key Error? 8 days ago

Comment by ~acegiak on ~tsileo/microblog.pub

Ok so I installed that update and things were going good and then after a while started running into the same issue again. Stopping the MBP process and restarting it makes it start working again. It might be, seems to me, that it degrades over time?

On Monday, November 28, 2022, ~tsileo outgoing@sr.ht wrote:

I tried to enable an additional retry on the HTTP client, we will see if that helps.

-- View on the web: https://todo.sr.ht/~tsileo/microblog.pub/73#event-215808

#73 Media Proxy Key Error? 10 days ago

Ticket created by ~acegiak on ~tsileo/microblog.pub

Following Error throws 500 when trying to serve media proxy sometimes?

INFO: 145.14.124.130:0 - "GET /proxy/media/19331/y6dQF8y8LBmZt9GG9UcoHgULva14sWgZZcVsZxzxtKA%3D/aHR0cHM6Ly9jZG4ubWFzdG8uaG9zdC9tYXN0b2RvbmFydC9tZWRpYV9hdHRhY2htZW50cy9maWxlcy8xMDkvNDIyLzgxMC8zMzcvMzEwLzM3NC9vcmlnaW5hbC9iMGVmMjQ4YmIzMmMzNTVmLmpwZWc%3D/740 HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/home/ubuntu/.cache/pypoetry/virtualenvs/microblogpub-w8qPhqp5-py3.10/lib/python3.10/site-packages/h2/connection.py", line 224, in process_input func, target_state = self.transitions[(self.state, input)] KeyError: (<ConnectionState.CLOSED: 3>, <ConnectionInputs.SEND_HEADERS: 0>)

#69 Display gif videos in a more gif-y way. 16 days ago

Comment by ~acegiak on ~tsileo/microblog.pub

oh wow that's weird. I guess if we wanted to we could check to see if there's an audio stream in the file's metadata in the backend but I'm personally not averse to putting js on just my own personal templates.

On Wed, Nov 23, 2022 at 5:08 AM ~tsileo outgoing@sr.ht wrote:

That's a good question, I took a quick look and here is an example attachment appearing as gif on Mastodon:

    "attachment": [
        {
            "blurhash": "UKEx|k-o%2xZMct7xuxZJBELIUoL0LE1WBR*",
            "height": 240,
            "mediaType": "video/mp4",
            "name": null,
            "type": "Document",
            "url": "https://files.mastodon.social/media_attachments/files/109/367/493/509/868/324/original/328cc722e95f02ce.mp4",
            "width": 360
        }
    ],

There's nothing in there giving a hint.

It looks to me that:

  • if the video has sounds, it does not auto-play
  • if the video has no sounds, it's considered as a gif, it always plays on hover, with looping enabled

It looks like it would be possible to implement something with JS (that would be optional) that implements something similar to Mastodon (i.e. if no sound, autopllay in loop mode on hover and hide the control bar).

-- View on the web: https://todo.sr.ht/~tsileo/microblog.pub/69#event-215088

-- regards, Ashton McAllan http://acegiak.net

#58 option to seperate incoming shares from notes/articles 16 days ago

on ~tsileo/microblog.pub

Thanks for the clarification, ~acegiak!

~tsileo, https://todo.sr.ht/~tsileo/microblog.pub/37 sound good to me! Then it would be possible to write some filter that takes actors from a list stored somewhere for which their shares should not be displayed, right?

#69 Display gif videos in a more gif-y way. 16 days ago

Ticket created by ~acegiak on ~tsileo/microblog.pub

When people post gifs to mastodon, it converts them to video which is fine but it then displays them in a very natural gif-like way (looping, muted, autoplay depending on config) does the AP data we get for such attachments tell us that it's a gif video? And if so can we do that nicer display?

#58 option to seperate incoming shares from notes/articles 16 days ago

Comment by ~acegiak on ~tsileo/microblog.pub

Announce is the official ActivityPub name for Shares. It's silly.

#49 Feat: allow like/reply/share content from non-fedi sources a month ago

Ticket created by ~acegiak on ~tsileo/microblog.pub

Add options for manually filling the URL and content snippet to reply/like/share content from across the web especially h-feed content

#47 Add article title slug url endpoint a month ago

Comment by ~acegiak on ~tsileo/microblog.pub

yeah that all makes perfect sense to me

#47 Add article title slug url endpoint a month ago

Comment by ~acegiak on ~tsileo/microblog.pub

My plan was to make an additional alternate endpoint so that /o/{uuid} would still work but /article/{slug} would be another option for humans