Sound persisting

Hi im using the A-Frame: React template. My issue that my client has pointed out is that the audio that is being played in the 8th wall experience still plays when i navigate back to the home screen. What is the best way to stop the audio instance with the lifecycle of such app. Thanks

Hi @daniel_stavrakis I believe you need to add some events to the experience to work around this. You could potentially bind this to a component like so:

window.addEventListener('blur', () => {
  sound.pause()
})

window.addEventListener('focus', () => {
  sound.play()
})

Hope this helps :slight_smile: