Help with linking button components to audio files.

I uploaded an audio file into my app following the instructions here
I then assigned the play function two a button I have in the app, but there are two problems, I am not sure how I can make the same button pause stop playing the audio (I dont need a pause or anything I just want the second click to cancel the audio so the 3rd click will restart the audio and so on) and whenever someone hits the button it opens up a window where the audio is played that blocks other features in my app. What potential fixes are there for this?
1 person has
this question