In the location bar, type
about:config
then search for key:
media.autoplay.enabled
and toggle it to false