Get started with dplayer CDN

MIT licensed

DPlayer is a lightweight HTML5 video player library for the web.

Tags:
  • player
  • danmaku
  • video
  • html5
  • dplayer
  • flv
  • his
  • dash
  • webtorrent

Stable version

Copied!

How to start using dplayer CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with dplayer CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css">
</head>
<body>
    <div id="player"></div>
    <script src="https://cdn.cdnhub.io/dplayer/1.27.1/DPlayer.min.js"></script>
    <script>
        new DPlayer({
            container: document.getElementById("player"),
            src: "path/to/your/audio/file.mp3", // Replace with the path to your audio file
            type: "audio",
            lang: "en",
            autoplay: false,
            loop: false,
            volume: 0.7,
            config: {
                // Additional configuration options go here
            }
        });
    </script>
</body>
</html>
Copied!
Copied!

All versions