Get started with soundmanager2 CDN
BSD licensed
SoundManager2 is a library for managing and loading audio files in web applications.
Tags:- browser
- audio
- sound
- mp3
- mpeg4
- html5
Stable version
Copied!
How to start using soundmanager2 CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with soundmanager2 CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/soundmanager2/V2.97a.20170601/script/soundmanager2-nodebug-jsmin.js"></script>
</head>
<body>
<button id="play">Play Sound</button>
<script>
// Initialize SoundManager2
SoundManager.setup();
// Create a new sound
var mySound = new Sound();
mySound.src = "sound.mp3"; // Replace with the path to your sound file
// Load the sound
mySound.load();
// Attach a click event to the play button
document.getElementById("play").addEventListener("click", function() {
// Play the sound
mySound.play();
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
2.91a.20081205
2.92a.20081224
2.93a.20090117
2.94a.20090206
2.95a.20090501
2.95a.20090717
2.95b.20100101
2.95b.20100323
2.96a.20100520
2.96a.20100606
2.96a.20100624
2.96a.20100822
2.96a.20100822+DEV
2.97.20140901
2.97a.20101010
2.97a.20101221
2.97a.20110101
2.97a.20110123
2.97a.20110306
2.97a.20110424
2.97a.20110705
2.97a.20110706
2.97a.20110801
2.97a.20110918
2.97a.20111030
2.97a.20111220
2.97a.20120318
2.97a.20120513
2.97a.20120527
2.97a.20120624
2.97a.20120916
2.97a.20121104
2.97a.20130101
2.97a.20130324
2.97a.20130512
2.97a.20131201
2.97a.20140901
2.97a.20150601
2.97a.20170601
V2.97a.20120624
V2.97a.20120916
V2.97a.20121104
V2.97a.20130101
V2.97a.20130324
V2.97a.20130512
V2.97a.20131201
V2.97a.20140901
V2.97a.20150601
*** V2.97a.20170601