diff --git a/src/components/intro-song.js b/src/components/intro-song.js index c3f9969..e62774a 100644 --- a/src/components/intro-song.js +++ b/src/components/intro-song.js @@ -28,6 +28,10 @@ AFRAME.registerComponent('intro-song', { if (oldData.isPlaying && !this.data.isPlaying) { audio.pause(); } }, + pause: function () { + this.audio.pause(); + }, + play: function () { this.fadeInAudio(); },