this post was submitted on 15 Aug 2023
598 points (89.0% liked)

Technology

59735 readers
2584 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 28 points 1 year ago (2 children)

There's really no reason to be mad at them in this particular instance. Their client is Chromium-based (Electron) so they will optimize their new features for that engine first. There's probably less than 5% users who Discord from browser, let alone Firefox, and I think I'm being generous with that number. Additionally, some things are harder to implement (or even impossible) in native web rather than Electron, that has all the NodeJS integrations.

[–] [email protected] 4 points 1 year ago

There's probably less than 5% users who Discord from browser, let alone Firefox

There are dozens of us! Dozens!

[–] [email protected] -1 points 1 year ago (3 children)

File upload is not a chromium feature, it's a super old basic feature. It's just their pittiness and upcoming drm implications. I bet if you set your user-agent to chrome it woould work just fine.

[–] [email protected] 25 points 1 year ago

Firefox doesn’t implement the AudioData API, which is probably necessary for the waveform viewer and cropping tool Discord presents in the soundboard management UI.

Not everything is about Chrome DRM yall.

Edited to add screenshot of spoofing user-agent on Firefox and getting an error:

https://midwest.social/pictrs/image/4edb0d24-0c2a-4610-b7b2-eed07a3c7d24.png

Here’s what happens when you spoof a Chrome user-agent.

https://midwest.social/pictrs/image/d3b96401-956b-4eab-bc5c-64b0743feae4.png

[email protected]

[–] themoonisacheese 12 points 1 year ago (1 children)

This dialog doesn't do just file upload, after you upload you can cut the sound file into a 4-second clip, inside the client. My bet is that it might technically be possible to do it in Firefox, but not with the same exact code as with chromium, and thus they decided they don't care.

[–] [email protected] 3 points 1 year ago

You're probably right. A modern browser that supports webassembly can do literally anything, implementing the missing AudioData functionality should be possible with enough development effort, but it's not important enough for them to make this particular feature works on Firefox.

[–] [email protected] 5 points 1 year ago

I haven't used soundboard yet, but I'm pretty sure it isn't "just" an HTML5 file upload. Perhaps it's as you said, they run checks on the file being uploaded. Maybe it will work, maybe it will crash in some use cases because they don't have a polyfill for some specific API they use. So instead of dealing with user complaints about crashes they just disabled the feature.
I'm also not sure why you're upset with Discord for implementing DRM for uploaded files. If they don't, they will get sued by the companies enforcing that DRM, so hate on those companies instead.