Default Firefox browser not playing some content

I had the same issue and after running the following command :

sudo apt install ffmpeg

It's a big install just for playing videos in firefox, but at least it works, and having ffmpeg on your system might always be useful.