You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
DIYgod 86ad08cd1a
update README and LICENSE
7 years ago
.github add ISSUE_TEMPLATE 7 years ago
demo New api: switchQuality 7 years ago
dist fix checking loading bug 7 years ago
plugin web full screen, close #30; new option: video.type 7 years ago
src fix checking loading bug 7 years ago
.eslintrc support segmented videos 7 years ago
.gitignore ignore logs 8 years ago
.travis.yml upgrade node version in travis-ci 7 years ago
LICENSE update README and LICENSE 7 years ago
README.md update README and LICENSE 7 years ago
package.json fix checking loading bug 7 years ago
postcss.config.js use yarn, upgrade to webpack2 7 years ago
webpack.config.js compress HTML string with template-string-optimize-loader 7 years ago
yarn.lock fix checking loading bug 7 years ago

README.md

ADPlayer

DPlayer

npm npm devDependency Status npm Travis %e2%9d%a4

Wow, such a lovely HTML5 danmaku video player

Introduction

DPlayer is a lovely HTML5 danmaku video player to help people play video and danmaku easily.

DPlayer supports:

  • Streaming formats:
  • Media formats:
    • MP4 H.264
    • WebM
    • Ogg
  • Features:
    • Danamku
    • Screenshot
    • Hotkeys
    • Quality switching

Using DPlayer on your project? Let me know!

Demo

Docs

image

Install

$ npm install dplayer --save

Quick Start

<link rel="stylesheet" href="https://rawgit.com/DIYgod/DPlayer/master/dist/DPlayer.min.css">
<div id="player1"></div>
<script src="https://rawgit.com/DIYgod/DPlayer/master/dist/DPlayer.min.js"></script>
var dp = new DPlayer({
    element: document.getElementById('player1'),
    video: {
        url: 'dplayer.mp4',
        pic: 'dplayer.png'
    },
    danmaku: {
        id: 'testid',
        api: 'https://api.prprpr.me/dplayer/'
    }
});

Usage

See docs

Join the Discussion

Who use DPlayer?

CDN

unpkg

cdnjs

BootCDN

RawGit

Donate

Author

DPlayer © DIYgod, Released under the MIT License.
Authored and maintained by DIYgod with help from contributors (list).

Blog · GitHub @DIYgod · Twitter @DIYgod · Weibo @DIYgod酱 · Telegram Channel 某不科学的DIYgod