Pause audio analyser song

This commit is contained in:
Diego Marcos
2018-09-18 00:32:53 -07:00
parent 73427d7128
commit b74f0e6c96

View File

@@ -131,6 +131,14 @@ AFRAME.registerComponent('song-preview-system', {
this.volumeTarget.volume = 0;
this.audio.play();
this.animation.restart();
this.updateAnalyser();
},
updateAnalyser: function () {
var introSongEl = document.getElementById('introSong');
var audioAnalyserEl = document.getElementById('audioanalyser');
introSongEl.pause();
//audioAnalyserEl.setAttribute('audioanalyser', 'src', this.audio);
},
clearSong: function (challengeId) {