Firefox Flatpak requires ffmpeg-full 19.08 to fix choppy playback. It has to be that version (20.08 didn’t work for me). It doesn’t come out of the box and is essential for many popular websites that use h264. In order to fix this:
You can check with flatpak remote-info flathub <appid>. AFAIK when ff updates the runtime then you will have to install ffmpeg-full again and remove the old one.