Add audio in Scene

How do I add audio so that when the scene loads the audio starts looping?

Im trying to move code from this project into my own project.

Are you using A-Frame to build your project? If so, this project is exactly what you are looking for - you can reference the readme and project code.

Please let us know what you’ve tried so far - any relevant code snippet(s) would be helpful.

How do I add audio without the splash page? I tried removing the splash page components and the sound doesnt play anymore

To play a video with sound on iOS, you need to capture a user gesture (such as a tap) from the user. You can either add a play button in the UI which plays the audio when clicked, or you can add a splash screen / intro button which has the user tap the screen to start the experience, like the splash screen sample project.

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