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

  • @[email protected]M
    link
    fedilink
    English
    37 months ago

    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

    • @TheKinksterOP
      link
      English
      17 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