We are able to play one Audio file at a time, using a button click event.
If we are trying to play two Audio files one by one in an order, using the same button click event; second audio file's sound is over-lapping the first audio file.
Pls help us in resolution of this issue.
without seeing any of your code it's impossible to be specific, so generally speaking you would put an if statement at the start of the function that starts the playback, saying if something is playing stop it before starting to play the new thing.
if that doesn't help, you might have to post some code - there are various ways of playing audio on the web.
you play the first one upon the button's click() event and the second one upon the first's onended() event...
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread