此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/DIYgod/DPlayer.git
一款非常好用的媒体播放器
|
|
il y a 8 ans | |
|---|---|---|
| .github | il y a 8 ans | |
| demo | il y a 8 ans | |
| dist | il y a 8 ans | |
| plugin | il y a 8 ans | |
| src | il y a 8 ans | |
| .eslintrc | il y a 8 ans | |
| .gitignore | il y a 8 ans | |
| .travis.yml | il y a 8 ans | |
| LICENSE | il y a 8 ans | |
| README.md | il y a 8 ans | |
| package.json | il y a 8 ans | |
| postcss.config.js | il y a 8 ans | |
| webpack.config.js | il y a 8 ans | |
| yarn.lock | il y a 8 ans |
Wow, such a lovely HTML5 danmaku video player
DPlayer is a lovely HTML5 danmaku video player to help people build video and danmaku easily.
DPlayer supports:
Using DPlayer on your project? Let me know!
$ npm install dplayer --save
<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/'
}
});
Let me know!Let me know!DPlayer © DIYgod, Released under the MIT License.
Authored and maintained by DIYgod with help from contributors (list).
Blog @Anotherhome · GitHub @DIYgod · Twitter @DIYgod · Weibo @DIYgod酱 · Telegram Channel @awesomeDIYgod