|
@@ -3,7 +3,7 @@
|
|
|
</p>
|
|
|
<h1 align="center">DPlayer</h1>
|
|
|
|
|
|
-> Wow, such a lovely HTML5 danmaku video player
|
|
|
+> 🍭 Wow, such a lovely HTML5 danmaku video player
|
|
|
|
|
|
[](https://www.npmjs.com/package/dplayer)
|
|
|
[](https://github.com/MoePlayer/DPlayer/blob/master/LICENSE)
|
|
@@ -41,142 +41,94 @@ DPlayer is a lovely HTML5 danmaku video player to help people build video and da
|
|
|
|
|
|
Using DPlayer on your project? [Let me know!](https://github.com/DIYgod/DPlayer/issues/31)
|
|
|
|
|
|
-**[Demo](http://dplayer.js.org/)**
|
|
|
+**[Docs](http://dplayer.js.org)**
|
|
|
|
|
|
-**[Docs](http://dplayer.js.org/docs)**
|
|
|
+**[中文文档](http://dplayer.js.org/#/zh-Hans/)**
|
|
|
|
|
|
-## Install
|
|
|
+## Join the Discussion
|
|
|
|
|
|
-```
|
|
|
-$ npm install dplayer --save
|
|
|
-```
|
|
|
+- [Telegram Group](https://t.me/adplayer)
|
|
|
+- [QQ Group](https://shang.qq.com/wpa/qunwpa?idkey=bf22213ae0028a82e5adf3f286dfd4f01e0997dc9f1dcd8e831a0a85e799be17): 415835947
|
|
|
|
|
|
-## Quick Start
|
|
|
+## Related Projects
|
|
|
|
|
|
-```html
|
|
|
-<link rel="stylesheet" href="dist/DPlayer.min.css">
|
|
|
-<div id="player1"></div>
|
|
|
-<script src="dist/DPlayer.min.js"></script>
|
|
|
-```
|
|
|
+Feel free to submit yours in [`Let me know!`](https://github.com/MoePlayer/DPlayer/issues/31)
|
|
|
|
|
|
-```js
|
|
|
-var dp = new DPlayer({
|
|
|
- element: document.getElementById('player1'),
|
|
|
- video: {
|
|
|
- url: 'dplayer.mp4',
|
|
|
- pic: 'dplayer.png'
|
|
|
- },
|
|
|
- danmaku: {
|
|
|
- id: 'testid',
|
|
|
- api: 'https://api.prprpr.me/dplayer/'
|
|
|
- }
|
|
|
-});
|
|
|
-```
|
|
|
+### Tooling
|
|
|
|
|
|
-## Usage
|
|
|
+- [DPlayer-thumbnails](https://github.com/MoePlayer/DPlayer-thumbnails): generate video thumbnails
|
|
|
|
|
|
-[Read the Docs](http://dplayer.js.org/docs)
|
|
|
+### Danamku api
|
|
|
|
|
|
-## CDN
|
|
|
+- [DPlayer-node](https://github.com/MoePlayer/DPlayer-node): Node.js
|
|
|
+- [laravel-danmaku](https://github.com/MoePlayer/laravel-danmaku): PHP
|
|
|
+- [dplayer-live-backend](https://github.com/Izumi-kun/dplayer-live-backend): Node.js, WebSocket live backend
|
|
|
+- [RailsGun](https://github.com/MoePlayer/RailsGun): Ruby
|
|
|
|
|
|
-- [jsDelivr](https://www.jsdelivr.com/package/npm/dplayer)
|
|
|
-- [cdnjs](https://cdnjs.com/libraries/dplayer)
|
|
|
-- [unpkg](https://unpkg.com/dplayer/)
|
|
|
+### Plugins
|
|
|
|
|
|
-## FAQ
|
|
|
+- [DPlayer-for-typecho](https://github.com/volio/DPlayer-for-typecho): Typecho
|
|
|
+- [Hexo-tag-dplayer](https://github.com/NextMoe/hexo-tag-dplayer): Hexo
|
|
|
+- [DPlayer_for_Z-BlogPHP](https://github.com/fghrsh/DPlayer_for_Z-BlogPHP): Z-BlogPHP
|
|
|
+- [DPlayer for Discuz!](https://coding.net/u/Click_04/p/video/git): Discuz!
|
|
|
+- [DPlayer for WordPress](https://github.com/BlueCocoa/DPlayer-WordPress): WordPress
|
|
|
+- [DPlayerHandle](https://github.com/kn007/DPlayerHandle): WordPress
|
|
|
+- [Vue-DPlayer](https://github.com/sinchang/vue-dplayer): Vue
|
|
|
+- [react-dplayer](https://github.com/hnsylitao/react-dplayer): React
|
|
|
|
|
|
-<details><summary>Why can't some videos be full screen?</summary><br>
|
|
|
+### Other
|
|
|
|
|
|
-If player is contained in a iframe, try adding the allowfullscreen attribute to the iframe.
|
|
|
+- [DPlayer-Lite](https://github.com/kn007/DPlayer-Lite): lite version
|
|
|
|
|
|
-For full browser support it should look like this:
|
|
|
+## Who use DPlayer?
|
|
|
|
|
|
-```html
|
|
|
-<iframe src="example.com"
|
|
|
- allowfullscreen="allowfullscreen"
|
|
|
- mozallowfullscreen="mozallowfullscreen"
|
|
|
- msallowfullscreen="msallowfullscreen"
|
|
|
- oallowfullscreen="oallowfullscreen"
|
|
|
- webkitallowfullscreen="webkitallowfullscreen"></iframe>
|
|
|
-```
|
|
|
-</details>
|
|
|
+- [嘀哩嘀哩](http://www.dilidili.wang/): 兴趣使然的无名小站(D站)
|
|
|
+- [银色子弹](https://www.sbsub.com/): 银色子弹,简称银弹,由多数柯南热爱者聚集在一起的组织
|
|
|
+- [纸飞机南航青年网络社区](http://my.nuaa.edu.cn/video-video.html): 南京航空航天大学门户网站
|
|
|
+- [otomads](https://otomads.com/): 专注于音MAD的视频弹幕网站
|
|
|
+- [Cloudreve](https://github.com/HFO4/Cloudreve): 基于ThinkPHP构建的网盘系统
|
|
|
+- Feel free to submit yours in [`Let me know!`](https://github.com/MoePlayer/DPlayer/issues/31)
|
|
|
|
|
|
-<details><summary>Why can't player autoplay in some mobile browsers?</summary><br>
|
|
|
+## Donate
|
|
|
|
|
|
-Most mobile browsers forbid video autoplay, you wont be able to achieve it without hacks.
|
|
|
-</details>
|
|
|
+DPlayer is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
|
|
|
|
|
|
-## Join the Discussion
|
|
|
+## One-time Donations
|
|
|
|
|
|
-- [Telegram Group](https://t.me/adplayer)
|
|
|
-- [QQ Group](https://shang.qq.com/wpa/qunwpa?idkey=bf22213ae0028a82e5adf3f286dfd4f01e0997dc9f1dcd8e831a0a85e799be17): 415835947
|
|
|
+We accept donations through these channels:
|
|
|
|
|
|
-## Related Projects
|
|
|
+- [Paypal](https://www.paypal.me/DIYgod)
|
|
|
+- [WeChat Pay](https://i.imgur.com/aq6PtWa.png)
|
|
|
+- [Alipay](https://i.imgur.com/wv1Pj2k.png)
|
|
|
+- Bitcoin: 13CwQLHzPYm2tewNMSJBeArbbRM5NSmCD1
|
|
|
|
|
|
-- [DPlayer-backend](https://github.com/MoePlayer/DPlayer-backend)
|
|
|
-- [DPlayer-data(weekly backup for api.prprpr.me/dplayer)](https://github.com/MoePlayer/DPlayer-data)
|
|
|
-- [DPlayer-thumbnails](https://github.com/MoePlayer/DPlayer-thumbnails)
|
|
|
-- [DPlayer-for-typecho](https://github.com/volio/DPlayer-for-typecho)
|
|
|
-- [Hexo-tag-dplayer](https://github.com/NextMoe/hexo-tag-dplayer)
|
|
|
-- [DPlayer_for_Z-BlogPHP](https://github.com/fghrsh/DPlayer_for_Z-BlogPHP)
|
|
|
-- [纸飞机视频区插件(DPlayer for Discuz!)](https://coding.net/u/Click_04/p/video/git)
|
|
|
-- [DPlayer for WordPress](https://github.com/BlueCocoa/DPlayer-WordPress)
|
|
|
-- [Vue-DPlayer](https://github.com/sinchang/vue-dplayer)
|
|
|
-- [react-dplayer](https://github.com/hnsylitao/react-dplayer)
|
|
|
-- [DPlayer-Lite](https://github.com/kn007/DPlayer-Lite)
|
|
|
-- [DPlayerHandle](https://github.com/kn007/DPlayerHandle)
|
|
|
-- [laravel-danmaku](https://github.com/MoePlayer/laravel-danmaku)
|
|
|
-- [dplayer-live-backend](https://github.com/Izumi-kun/dplayer-live-backend)
|
|
|
-- Feel free to submit yours in [`Let me know!`](https://github.com/MoePlayer/DPlayer/issues/31)
|
|
|
+## Recurring Pledges
|
|
|
|
|
|
-## Who use DPlayer?
|
|
|
+Recurring pledges come with exclusive perks, e.g. having your name or your company logo listed in the DPlayer GitHub repository and this website.
|
|
|
|
|
|
-- [嘀哩嘀哩](http://www.dilidili.wang/)
|
|
|
-- [银弹字幕组](https://www.sbsub.com/)
|
|
|
-- [纸飞机南航青年网络社区](http://my.nuaa.edu.cn/video-video.html)
|
|
|
-- [otomads](https://otomads.com/)
|
|
|
-- Feel free to submit yours in [`Let me know!`](https://github.com/MoePlayer/DPlayer/issues/31)
|
|
|
+- Become a backer or sponsor via [OpenCollective](https://opencollective.com/dplayer)
|
|
|
+- E-mail us: i#html.love
|
|
|
|
|
|
-## Donate
|
|
|
+## Current Premium Sponsors
|
|
|
|
|
|
-- [Donate via OpenCollective](https://opencollective.com/dplayer)
|
|
|
-- [Donate via Paypal](https://www.paypal.me/DIYgod)
|
|
|
-- [Donate via WeChat Pay](https://ws4.sinaimg.cn/large/006tKfTcgy1fhu1uowywej307s07st8h.jpg)
|
|
|
-- [Donate via Alipay](https://ws4.sinaimg.cn/large/006tKfTcgy1fhu1vf4ih7j307s07sdfm.jpg)
|
|
|
-- Donate via Bitcoin: 13CwQLHzPYm2tewNMSJBeArbbRM5NSmCD1
|
|
|
-
|
|
|
-## Sponsors
|
|
|
-
|
|
|
-Thank you to all our sponsors!
|
|
|
-
|
|
|
-<table>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td align="center" valign="middle">
|
|
|
- <a href="https://pear.hk/" target="_blank">
|
|
|
- <img width="222px" src="https://i.imgur.com/5qQYmfc.png">
|
|
|
- </a>
|
|
|
- </td>
|
|
|
- <td align="center" valign="middle">
|
|
|
- <a href="https://console.upyun.com/register/?invite=BkLZ2Xqob" target="_blank">
|
|
|
- <img width="222px" src="https://imgur.com/apG1uKf.png">
|
|
|
- </a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
-</table>
|
|
|
+### Special Sponsors
|
|
|
|
|
|
-## Contributors
|
|
|
+<a href="https://pear.hk/" target="_blank">
|
|
|
+ <img width="222px" src="https://i.imgur.com/5qQYmfc.png">
|
|
|
+</a>
|
|
|
+<a href="https://console.upyun.com/register/?invite=BkLZ2Xqob" target="_blank">
|
|
|
+ <img width="222px" src="https://imgur.com/apG1uKf.png">
|
|
|
+</a>
|
|
|
|
|
|
-This project exists thanks to all the people who contribute.
|
|
|
+### OpenCollective backers
|
|
|
|
|
|
-<a href="https://github.com/MoePlayer/DPlayer/graphs/contributors"><img src="https://opencollective.com/DPlayer/contributors.svg?width=890" /></a>
|
|
|
+
|
|
|
|
|
|
-## Backers
|
|
|
+## Contributors
|
|
|
|
|
|
-Thank you to all our backers!
|
|
|
+This project exists thanks to all the people who contribute.
|
|
|
|
|
|
-<a href="https://opencollective.com/DPlayer#backers" target="_blank"><img src="https://opencollective.com/DPlayer/backers.svg?width=890"></a>
|
|
|
+<a href="https://github.com/MoePlayer/DPlayer/graphs/contributors"><img src="https://opencollective.com/DPlayer/contributors.svg?width=890" /></a>
|
|
|
|
|
|
## Author
|
|
|
|