Hello world,
I am having a difficult time trying to stop/restart a 60sec MP3 file on a click action. I could use some help with this. I have 2 audio files I am working with:
#Player1
This is a simple embedded MP3 that triggers a very quick 0.5sec sound of ‘metal clanking’ on a click action. This is working fine.
javascript:void( $("#player1")[0].play() );
#player2
This is an MP3 that plays a 60sec audio file. When triggered the ‘countdown’ sound will play. It’s working in combination with #player1 perfectly fine. The problem: If a button is pressed ideally I want to trigger ‘player1’, and restart ‘player2’ from 0sec again.
I hope that is clear. I am not able to post the file, but I have included the JS line that triggers the audio files.
javascript:void( $("#player2")[0].play() );