Many videos on the Internet use the H.264 codec. Because of licensing restrictions, Firefox cannot bundle H.264 for free, so it relies on your operating system to play them.
macOS and most Windows versions support this codec out of the box. It needs to be installed manually on Windows N editions. Linux may require a special package such as ubuntu-restricted-extras.
Even when proper codec support is not available, though, Firefox can still enable WebRTC streams, such as video calls, thanks to OpenH264, an open source solution developed by Cisco. It is installed automatically for Firefox users.