GeopJr / Tuba

[On break until 2024-07-15] Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
511 stars 55 forks source link

[Bug]: Audio-only embeds do not play with sound, and cannot be unmuted #868

Closed nekohayo closed 3 months ago

nekohayo commented 3 months ago

Describe the bug

When viewing the details for a toot containing an audio-only attachment, such as an MP3 file, Tuba is unable to play it.

Steps To Reproduce

  1. With Tuba, try to listen to this fine sample

Logs and/or Screenshots

No response

Instance Backend

Mastodon

Operating System

Fedora 39

Package

Flatpak

Troubleshooting information

os: GNOME 46 (Flatpak runtime) prefix: /app flatpak: true version: 0.7.0 (production) gtk: 4.14.1 (4.14.1) libadwaita: 1.5.0 (1.5.0) libsoup: 3.4.4 (3.4.4) libgtksourceview: 5.12.0 (5.12.0)

Additional Context

In the Mastodon web interface in Firefox, it works. It also shows a very cute circular visualization, like what you could get with Cavalier

GeopJr commented 3 months ago

Could you send me a video of what's happening? Can't reproduce it from my side

GeopJr commented 3 months ago

In the Mastodon web interface in Firefox, it works. It also shows a very cute circular visualization, like what you could get with Cavalier

I have a working unoptimized visualizer somewhere on my machine but it's very basic and resembles twitter's circular one. Not sure if requiring cava and spawning it as a process itself is worth it, like cavalier does as far as I am aware. I'd rather have a library (which as most things, I'll have to write myself unfortunately)

nekohayo commented 3 months ago

Huh, this is so weird... I restarted Tuba in the meantime, and now it works. I don't understand why it failed an hour ago; when it happened, the volume speaker icon was struck out (muted). Maybe somehow it had not loaded the contents of the embed, but that's a bit surprising given that it's only 70 KB or so.

I guess we could close this since I'm not consistently reproducing it :(

GeopJr commented 3 months ago

I noticed some other race conditions that probably fix that!

nekohayo commented 3 months ago

Very nice! I have no idea how we will be able to conclusively test this though 😅