
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Can I play the same sound more than once at the same time with HTML5?
To play the sound more than once at the same time, you need to clone the <audio> element. This works for Google Chrome −
var sound = document.getElementById("incomingMessageSound") var sound2 = sound.cloneNode(); sound.play() sound2.play()
The cloneNode is useful to return a duplicate of the node and helps in running the sound again.
- Related Questions & Answers
- How can one believe in science and religion at the same time?
- Multiple data input at the same time in MySQL?
- Compute the multiplicative inverse of more than one matrix at once in Python
- Can I insert two or more rows in a MySQL table at once?
- Insert more than one element at once in a C# List
- How to identify multiple elements at the same time in Selenium with python?
- How to select at the same time from two Tkinter Listbox?
- How to show multiple Canvases at the same time in Tkinter?
- How to catch many exceptions at the same time in Kotlin?
- How can I play a sound when a Tkinter button is pushed?
- Can I import same package twice? Will JVM load the package twice at runtime?
- Pull and add to set at the same time with MongoDB? Is it Possible?
- What are the best tricks to manage multiple tasks at the same time?
- Array elements that appear more than once?
- Generating sound on the fly with JavaScript/ HTML5
Advertisements