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?
A web framework for building virtual reality experiences. Make WebVR with HTML and Entity-Component. Works on Vive, Rift, desktop, mobile platforms.
It’s worked!! Thank you so much
2 Likes
system
Closed
July 15, 2021, 8:17pm
8
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.