-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
7 lines (6 loc) · 997 Bytes
/
index.html
1
2
3
4
5
6
7
<!doctype html><html><head><title>Positional Audio Test</title><meta http-equiv="content-type" content="text/html; charset=UTF8"><meta name="viewport" content="width=device-width"></head><body><script src="https://cdn.jsdelivr.net/gh/aframevr/aframe@abadfc803609941f29d3db6f96e2b2bddc780d2f/dist/aframe-master.min.js"></script><a-scene id="scene" renderer="colorManagement: true; highRefreshRate: true; foveationLevel: 3;"><a-sphere position="0 1 -3" radius="0.5" color="#3aebca"></a-sphere><a-plane width="100" height="100" color="#333333" rotation="-90 0 0"></a-plane><a-sound id="music" src="https://res.cloudinary.com/dabjq8kaj/video/upload/v1638482558/vread/music/ES_Empty_Road_-_ocean_jams_gl7zef.mp3" loop="true" position="0 1 -3" rolloffFactor="3" distanceModel="inverse" refDistance="1" autoplay="false" on="entervr"></a-sound></a-scene><script>(function() {
scene.addEventListener('enter-vr', function() {
return music.emit("entervr");
});
}).call(this);
</script></body></html>