Custom Mute Unmute button

I am creating an e-learning where i have included a custom mute/unmute button, its working fine. 

but the problem arises when i mute the audio on one slide and goes to next slide, what happens is - audio is still mute but the button's state shows its playing. 

I have two buttons i.e. Audio On and Audio Off.

if being on a slide i mute the audio and moves to another slide, the audio is not playing but the button that is visible is "Audio on"..

please help on how can i fix this.. its an urgent request. 

2 Replies