Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request]: Looping animated images treated as such (instead of treated as videos) #435

Closed
2 of 4 tasks
nekohayo opened this issue Aug 6, 2023 · 1 comment · Fixed by #1060
Closed
2 of 4 tasks
Labels
enhancement New feature or request

Comments

@nekohayo
Copy link

nekohayo commented Aug 6, 2023

Describe the request

If you look at https://mastodon.social/@jmsdnns/110843691825850858 through Tuba, it will behave as a 1-second long video that immediately stops after starting.

Animated GIFs, WebP, JPEG XL (now supported by the latest WebKitGTK for GNOME 45), AVIF, should be treated as such.

Maybe autoplaying while:

  • on a mobile device/formfactor (because there is no such thing as hovering, as there is no mouse...)
  • on a desktop device that is not in powersaver energy mode nor disable/reduce-animations mode; hover-to-play otherwise.

And ideally / if needed for power savings and performance (i.e. if it's not done automagically by the toolkit) stop the playback when scrolled off-screen.

Implementation Details

  • This should be an option in settings.
  • This should be only available to some fediverse backends. (Include which ones on the above field).
  • This is client-only (and shouldn't sync with the instance).
  • This follows the GNOME HIG.
@nekohayo nekohayo added the enhancement New feature or request label Aug 6, 2023
@nekohayo nekohayo changed the title [Request]: Looping animated images treated as video instead of animated images [Request]: Looping animated images treated as such (instead of treated as videos) Aug 6, 2023
@GeopJr
Copy link
Owner

GeopJr commented Dec 4, 2023

Took a closer look for #682

The main blockers are https://gitlab.gnome.org/GNOME/gtk/-/issues/4062 and the whole performance issue:

  1. All GIFs are actually GIFVs (that's why they are treated as videos). Due to the linked bug (which is actually a Gstreamer issue (https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/724)), all videos on Tuba get downloaded rather than streamed. Streaming GIFVs should be more appropriate
  2. (I've gone into multiple rants about this already but) since the posts are not getting recycled, having them be downloaded or streamed in full just so we can play them on hover would increase memory usage by a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants