Home > Back-end >  Why autoplay does not start in Edge
Why autoplay does not start in Edge

Time:12-19

I currently have a problem with the MP3 audio, indeed, autoplay does not work when I launch the page and the loop does not work either if I add the controls, and I click on the play button it runs. I do not know if the problem comes from the browser (Edge).

<audio autoplay loop>
        <source src="src/test.mp3" type="audio/mpeg"/>
    </audio>

CodePudding user response:

I know that for video autoplay only works if it is muted. I would assume that it is the same for audio, so you would have to mute it for autoplay to work.

CodePudding user response:

how big is your audio file? if you want to use autoplay. the browser will load the full file first and then it will play the audio. you can check the doc here:

https://www.w3schools.com/tags/att_audio_autoplay.asp

  •  Tags:  
  • html
  • Related