From 8d11049af23be8f5a991b14df2f8b2f74794d16d Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Fri, 7 Dec 2018 19:05:45 -0800 Subject: [PATCH] intro-song pause handler --- src/components/intro-song.js | 4 ++++ 1 file changed, 4 insertions(+) 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(); },