Get started with aplayer CDN

MIT licensed

Aplayer is a lightweight HTML5 audio player library for web applications.

Tags:
  • player
  • music
  • html5

Stable version

Copied!

How to start using aplayer CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with aplayer CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.quwalla.com/aplayer/1.10.1/APlayer.min.css">
  <script src="https://cdn.cdnhub.io/aplayer/1.10.1/APlayer.min.js"></script>
</head>
<body>
  <div id="player"></div>
  <script>
    const player = new APlayer({
      container: document.getElementById('player'),
      src: '//music.163.com/song/media/outer/url?id=3289515.mp3', // Replace with your audio file URL
      title: 'Example Song', // Replace with your song title
      autoplay: false // Set autoplay to false by default
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions