intro-song pause handler

This commit is contained in:
Kevin Ngo
2018-12-07 19:05:45 -08:00
parent 709b27772f
commit 8d11049af2

View File

@@ -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();
},