this post was submitted on 27 Nov 2023
6 points (100.0% liked)

Lemma - An iOS Lemmy client

395 readers
1 users here now

founded 1 year ago
MODERATORS
 

As the title says, all redgif videos don‘t have sound

you are viewing a single comment's thread
view the rest of the comments
[–] gromdroid 3 points 11 months ago (1 children)

I have to be honest that I didn’t specially test this, but could it be that the videos simply don’t have sound?

With Lemma I simply parse the content of a post to figure out if it’s a image, text or video post. Based on the URL of the post I decide the show the video player, but that’s about it.

There is however a ‘bug’ that I always show the unmute/mute button, even if the video doesn’t have sound. The issue is that I only have a URL for videos, but no metadata if the video has sound or not. I’ll look into the fact if I can somehow recognize if the video has audio or not to prevent confusion, but that might take a while since there are more pressing bugs at the moment

[–] [email protected] 1 points 11 months ago

I checked for that, see this example video (NSFW) In Lemma I don‘t have sound but if I open it in browser it does.

How is the video requested? I have seen some lemmy instances just append "-mobile.mp4" to the normal link and that usually leads to no sound (for unknown reasons). The only way I know to get the full video is through their API, which needs a token request first. I‘ve dealt with it for a user script I made