DIYgod mirror
Go to file
DIYgod 38c10cbd5a
MSE in switchVideo
2017-09-03 04:00:13 +08:00
.github add ISSUE_TEMPLATE 2017-03-08 18:52:02 +08:00
demo MSE in switchVideo 2017-09-03 04:00:13 +08:00
dist MSE in switchVideo 2017-09-03 04:00:13 +08:00
src MSE in switchVideo 2017-09-03 04:00:13 +08:00
webpack build: define DPLAYER_VERSION using webpack.DefinePlugin 2017-07-28 10:58:14 +08:00
.eslintrc eslint: no-trailing-spaces; minor style 2017-08-19 01:37:19 +08:00
.gitignore ignore logs 2016-11-08 18:06:13 +08:00
.travis.yml upgrade node version in travis-ci 2017-02-06 12:26:14 +08:00
LICENSE update README and LICENSE 2017-07-23 22:13:11 +08:00
README.md new version; add Related Projects 2017-09-02 13:26:13 +08:00
package.json MSE in switchVideo 2017-09-03 04:00:13 +08:00
yarn.lock package: use babel-preset-env instead of babel-preset-es2015 2017-07-27 17:34:06 +08:00

README.md

ADPlayer

DPlayer

Wow, such a lovely HTML5 danmaku video player

npm npm npm size Travis devDependency Status donate

Introduction

image

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

DPlayer supports:

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

Using DPlayer on your project? Let me know!

Demo

Docs

Install

$ npm install dplayer --save

Quick Start

<link rel="stylesheet" href="dist/DPlayer.min.css">
<div id="player1"></div>
<script src="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

Read the Docs

Join the Discussion

Who use DPlayer?

CDN

Donate

Author

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

Blog @Anotherhome · GitHub @DIYgod · Twitter @DIYgod · Telegram Channel @awesomeDIYgod