When you start your browser, type in
about:config
press enter.
Type in the search bar ' autoplay '.
Enable by changing it to ' True '. This will now be visible to your browser information site on the address bar being able to see status for autoplay state.
dom.media.autoplay.autoplay-policy-api
Continue and Disabling autoplay never to activate in the background by change it to ' False '.
media.autoplay.allow-extension-background-pages
Continue and Disable autoplay not start muted by change it to ' False '.
media.autoplay.allow-muted
Enable autoplay to be stopped by activating it. Change it to ' True '.
media.autoplay.block-event.enabled
Enable autoplay to block webaudio by change it to ' True '.
media.autoplay.block-webaudio
Enabled by default with value set ' 0 ', but set to have value ' 1 ' in order to block automatic playback on all pages, or set it to ' 2 ' to decide on a per domain basis. But from Firefox 70.0.0 thus feature been changed to changed by default to block audio and video of value set ' 5 ', that is if you go to Options and on Privacy and Security, then scrolling to Autoplay, you can set the rules what to do hence:
To block audio and video of value set ' 5 ',
media.autoplay.default
Enable autoplay only by gesture needed hence it is Disabled by default - Set to have value ' True '.
media.autoplay.enabled.user-gestures-needed
Enabled by default to block autoplay until in foreground. Set to have value ' False' to prevent it ever autoplay when you switch to the browser.
media.block-autoplay-until-in-foreground
Marts-19-2019: In Firefox 66 the autoplay preferences are reorganized in preparation for this feature shipping out of the box in one of the upcoming versions. Here the focus was autoplay in the background from websites then going to implement later on for general autoplay which can be seen here Block Autoplay - if you ask me, nothing really has happened since. I've looked over it again hence you see my updated version of Block Autoplay in which I am satisfied so far about, but if you want some better blockage perhaps per domain blockage of autoplay would do instead of per automatic playbacks.
Ex. for Mozilla Firefox version 66.0.5
media.autoplay.default
-- Defines Autoplay behavior of the browser. Default value is now to have 1 before it was 0.
Value of 0: Autoplay allowed.
Value of 1: Autoplay blocked.
Value of 2: Prompt the user.
Value of 5: Block Audio and Video. (Feature changed from (Firefox 70.0.0)
***
Preference name no longer visible:
Enable autoplay to ask permission and can be set change it to ' True ' if you want it to ask permission.
media.autoplay.ask-permission
Enable to block automatic playback by change it to ' 1 '. It will set it as standard block automatic playback on all pages.
app.normandy.startupRolloutPrefs.media.autoplay.default
Mozilla Firefox seems to not fully implement on this one hence it is still researched and looking to see how users are using their own browsers. This seemed to be no longer an standard, just jump down below here.
For effectively block autoplay, go to your Firefox Open menu, then tab on your Options. Tab into Privacy & Security then scroll down to Permissions and make sure you have check-marked Block websites from automatically playing sound.
Still an issue with autoplay? When then go back to Firefox Open menu, then tab on your Options. Tab into Privacy & Security then scroll down to Permissions and tab Exceptions... on Block websites from automatically playing sound or video etc.
In here you can designate the site / url and put in Block. Then press Save changes.