Results 1 to 3 of 3

Thread: Issue with playing Audio files one by one using JavaScript

  1. #1
    Join Date
    Dec 2005

    Thumbs up Issue with playing Audio files one by one using JavaScript

    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.

  2. #2
    Join Date
    Nov 2010
    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.

  3. #3
    Join Date
    Jul 2008
    urbana, il
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center