1
0

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

DIYgod 86ad08cd1a update README and LICENSE 7 жил өмнө
.github 0c5e6a49d7 add ISSUE_TEMPLATE 8 жил өмнө
demo a4f5c2c0f3 New api: switchQuality 7 жил өмнө
dist 07ef15b20a fix checking loading bug 7 жил өмнө
plugin 867730d194 web full screen, close #30; new option: video.type 8 жил өмнө
src 07ef15b20a fix checking loading bug 7 жил өмнө
.eslintrc a042b39550 support segmented videos 8 жил өмнө
.gitignore fe53364920 ignore logs 8 жил өмнө
.travis.yml 64b4ca6419 upgrade node version in travis-ci 8 жил өмнө
LICENSE 86ad08cd1a update README and LICENSE 7 жил өмнө
README.md 86ad08cd1a update README and LICENSE 7 жил өмнө
package.json 07ef15b20a fix checking loading bug 7 жил өмнө
postcss.config.js e359cceefb use yarn, upgrade to webpack2 8 жил өмнө
webpack.config.js a3d7e6d3bc compress HTML string with template-string-optimize-loader 7 жил өмнө
yarn.lock 07ef15b20a fix checking loading bug 7 жил өмнө

README.md

ADPlayer

DPlayer

npm npm devDependency Status npm Travis

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

Related Projects

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