• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Play a sound one after another from array

Contributor ,
Jan 18, 2019 Jan 18, 2019

Copy link to clipboard

Copied

Hello,

I need to play one sound after another from list,

something like that:

var audio1 = new Audio("MySound.mp3");

var audio2 = new Audio("MySound.mp3");

etc.

var MyList = [audio1, audio2, etc...];

function PlayMyList(){   

MyList[0, 1, etc].play();

}   

Can you help me?

Thank you very much.

Views

235

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 18, 2019 Jan 18, 2019

See if this helps

Edit fiddle - JSFiddle

Votes

Translate

Translate
Community Expert ,
Jan 18, 2019 Jan 18, 2019

Copy link to clipboard

Copied

LATEST

See if this helps

Edit fiddle - JSFiddle

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines