Disabling audio and video auto play in Firefox over the settings page doesn’t work reliably at the time of writing (v111). I found this setting to get the job done:
- type about:config in the address bar
- Find the setting media.autoplay.blocking_policy
- Set it to the value 2