Firefox wont play videos

I agree, but that’s patent law for you, unfortunately.

Patents prevent Fedora from shipping H.264 support in any browser; it just so happens Fedora chooses Firefox as the default browser. Nothing would change if they chose Brave or Chromium instead.

Fedora does make the situation worse by not including openh264 by default. This would have allowed you to playback H.264 videos in Firefox without needing to do anything. The reason for this is that Fedora is only allowed to use openh264 in binary form for the royalty-free license to apply. If they build openh264 themselves, they’re open to a lawsuit. Because of Fedora’s principles regarding free software, it is not included in the default repositories and openh264 must be installed by the user’s choice.

I made a thread about this two months ago and got some interesting responses, if you’re curious about the exact details of the situation: H.264 Support in Fedora Workstation (by default)

Oh, and if you’re curious why Flathub repositories are enabled by default and H.264 playback is allowed in Flathub packages, uhh see this article by LWN?