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

DIYgod 06012e16e0 release v1.22.0 7 rokov pred
.github 6584eadf09 add OpenCollective 7 rokov pred
demo a16c948a2d use art-template 7 rokov pred
dist 06012e16e0 release v1.22.0 7 rokov pred
src a16c948a2d use art-template 7 rokov pred
webpack a16c948a2d use art-template 7 rokov pred
.eslintrc 5a12be0554 support WebTorrent 7 rokov pred
.gitignore fe53364920 ignore logs 8 rokov pred
.travis.yml 52607916a4 Travis: update nodejs version, cache yarn and node_modules 7 rokov pred
LICENSE 86ad08cd1a update README and LICENSE 7 rokov pred
README.md 0ae45111af update README 7 rokov pred
package.json 06012e16e0 release v1.22.0 7 rokov pred
yarn.lock 2b80878213 fix yarn.lock 7 rokov pred

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

CDN

FAQ

Why can't some videos be full screen?
If player is contained in a iframe, try adding the allowfullscreen attribute to the iframe. For full browser support it should look like this: ```html ```
Why can't player autoplay in some mobile browsers?
Most mobile browsers forbid video autoplay, you wont be able to achieve it without hacks.

Join the Discussion

Related Projects

Who use DPlayer?

Donate

Sponsors

Thank you to all our sponsors!

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

Author

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

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