此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/DIYgod/DPlayer.git
一款非常好用的媒体播放器

Karl Chen d805f692ae Update fullscreen.js %!s(int64=7) %!d(string=hai) anos
.github 0c5e6a49d7 add ISSUE_TEMPLATE %!s(int64=8) %!d(string=hai) anos
demo a8e03abf7a template module %!s(int64=7) %!d(string=hai) anos
dist a8e03abf7a template module %!s(int64=7) %!d(string=hai) anos
src d805f692ae Update fullscreen.js %!s(int64=7) %!d(string=hai) anos
webpack a6380b7251 add git hash %!s(int64=8) %!d(string=hai) anos
.eslintrc c0f515addb MPEG DASH support %!s(int64=7) %!d(string=hai) anos
.gitignore fe53364920 ignore logs %!s(int64=8) %!d(string=hai) anos
.travis.yml 64b4ca6419 upgrade node version in travis-ci %!s(int64=8) %!d(string=hai) anos
LICENSE 86ad08cd1a update README and LICENSE %!s(int64=8) %!d(string=hai) anos
README.md 058ba442b6 update Related Projects and Who use DPlayer %!s(int64=7) %!d(string=hai) anos
package.json a8e03abf7a template module %!s(int64=7) %!d(string=hai) anos
yarn.lock 5207d26a70 fix danmaku callback error in mobile and live mode %!s(int64=7) %!d(string=hai) anos

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
    • Subtitle

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

Related Projects

Who use DPlayer?

CDN

Donate

Sponsor

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