The solution to this problems depends on the browser you are using but for example in chrome would be :
1.Go to “chrome://flags” in the URL bar and hit Return/Enter
2.In the search box at the top, type in “autoplay”
3.Look for “Autoplay policy” and pull down the submenu, then choose “Document user activation is required”
4.Relaunch Chrome for the setting to take effect