-1

I tried using the autoplay attribute in the audio element by using the <source> and <audio> tags as in the following code

<audio autoplay controls>
    <source src="media/Download Free Waves Sound Effects.mp3" type="audio/mpeg">
</audio>

It's not auto-playing the audio. I tried using MS Edge and Google Chrome.

Viraj Shah
  • 754
  • 5
  • 19

1 Answers1

0

Try to use absolute path for audio file instead of using relative file.

Note: The path with reference to root directory is called absolute. The path with reference to current directory is called relative.

Logu
  • 9
  • 1