audio autoplay working in Mozilla, Microsoft edge and old google chrome as well but not in new google chrome. they have blocked the autoplay. is there any way to make it au
You may simply use (.autoplay = true;) as following (tested on Chrome Desktop):
If you need to add stop/play buttons:
If you want stop/play to be one single button:
If you want to display stop/play on the same button:
In some browsers audio may doesn't work correctly, so as a trick try adding iframe before your code: