Audio Won't Play on my WEB VR ENVIRONMENT. Help?

I am creating a web VR environment for my uni project. I want ‘Those Magic Changes’ playing whilst you view the vr. I have tried all sorts of ordering, code shortcuts etc. I am new to this. I need help on how to get it playing in the web browser?

Link: https://yellow-ritzy-result.glitch.me/ (unsure if you will be able to acces)
My code:

American Diner VR
<a-scene>
  <audio controls>
    <source
      src="Those Magic Changes (From “Grease”).mp3"
      type="audio/mpeg"
    />
  </audio>
  <a-assets>
    <img id="sky" src="americandiner.png" />
  </a-assets>

  <a-sky src="#sky"></a-sky>
</a-scene>

replace <audio controls> with <audio controls autoplay>
What device are you viewing this on also btw

As a note, Firefox is going to block autoplay by default.

2 Likes

I’ll try that thank you!

Working on a Lenovo Ideapad330, opening browsers in Google Chrome.

This doesn’t change anything unfortunately.

Have you checked out the docs?

It’s worked!! Thank you so much :slight_smile:

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.