Page 1 of 1

Showing an element if audio component is playing

Posted: Tue Jan 05, 2016 5:46 pm
by Matt Simoncavage

I have an audio component that plays throughout my app in the background. I found out how to do this here: https://getsatisfaction.com/apperyio/... and it works great.

My question is, is it possible to have a page load event that runs javascript to hide an element on the page only when the audio component is playing?

Thanks!


Showing an element if audio component is playing

Posted: Wed Jan 06, 2016 10:18 am
by Serhii Kulibaba

Hello Matt,

Yes, it is possible. Please look at "play" event of the audio component: https://developer.mozilla.org/en-US/d...