0

The local version of my site will play my audio but when I upload it to the Cloudflare page it does not play

https://insane.rip (my site)

  if (event.keyCode == 32 && app.skippedIntro) {
    if (app.backgroundToggler) {
      app.videoElement.play();
      app.audioElement.play();
    } else {
      app.videoElement.play();
      app.audioElement.play();
    }

1 Answers1

1

Original Answer by nat which you can find here

It´s because Google updated its Autoplay Policy, it is necessary for the user to make some interaction first with the window in which the sound will be played, for example a 'Start' button then you can play the sound. This happened because for many users it is annoying when a sound is played out of nowhere.

Kunal Tanwar
  • 1,209
  • 1
  • 8
  • 23