From 1f2bd37b1a58fabe9f09ee74f4842c1e2e3d9942 Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Sat, 1 Dec 2018 19:02:28 +0100 Subject: [PATCH] Example: Fix webaudio_orientation for Chrome mobile --- examples/webaudio_orientation.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/webaudio_orientation.html b/examples/webaudio_orientation.html index 65bc8b7cdd31a..a32cf6bfaac3b 100644 --- a/examples/webaudio_orientation.html +++ b/examples/webaudio_orientation.html @@ -158,6 +158,7 @@ camera.add( listener ); var audioElement = document.getElementById( 'music' ); + audioElement.play(); var positionalAudio = new THREE.PositionalAudio( listener ); positionalAudio.setMediaElementSource( audioElement ); @@ -184,7 +185,6 @@ } ); - audioElement.play(); boomBox.add( positionalAudio ); scene.add( boomBox ); animate();