1.0.44 • Published 3 years ago

dplayer-ansheng v1.0.44

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

🍭 Wow, such a lovely HTML5 danmaku video player

npm npm npm size Travis devDependency Status

Introduction

原作者 @DIYGod

BY ANSHENG

npm i dplayer-ansheng


  • 更新历史
    • v1.0.42:添加画中画开启按钮,如果浏览器支持默认开启功能
    • v1.0.30:画中画优化
    • v1.0.21:画中画兼容弹幕
    • v1.0.17:画中画添加拖拽移动功能
    • v1.0.16:添加弹幕举报功能,视频下载功能
    • v1.0.15:添加鼠标移入弹幕悬停功能
    • v1.0.13:添加画中画模式
    • v1.0.12:弹幕速度根据弹幕长度变更
    • v1.0.11:播放器控制栏底部添加弹幕开关按钮

#####QQ:1076597015

####如何使用:

 new DPlayer({
         container: document.getElementById('dplayer1'),
         preload: 'none',
         screenshot: true,
         pipTop: 600,  //画中画距离顶部位置 单位px 默认false 
         video: {
             url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4',
             pic: 'https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png',
             thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg'
         },
         subtitle: {
             url: 'https://s-sh-17-dplayercdn.oss.dogecdn.com/hikarunara.vtt'
         },
         danmaku: {
             id: '9E2E3368B56CDBB4',
             api: 'http://test.lzjrys.store/api/web/danmuku',
             addition: ['https://s-sh-17-dplayercdn.oss.dogecdn.com/1678963.json'],
             reportApi:"http://test/lzjrys/store/api/web/danmakuReport" 默认false
         },
         downloadUrl:"视频链接" 默认false 开启下载视频功能
     });

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
    • Danmaku
    • Screenshot
    • Hotkeys
    • Quality switching
    • Thumbnails
    • Subtitle

Using DPlayer on your project? Let me know!

Docs

中文文档

Thanks

Special Sponsors

Sponsors

极酷社

Contributors

Join the Discussion

Related Projects

Feel free to submit yours in Let me know!

Tooling

Danmaku api

Plugins

Other

Who use DPlayer?

Donate

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.

One-time Donations

We accept donations through these channels:

Recurring Pledges

Recurring pledges come with exclusive perks, e.g. enabling faster GitHub response, having your name or your company logo listed in the DPlayer GitHub repository and this website.

  • Become a backer or sponsor via Patreon
  • E-mail us: i#html.love

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

1.0.44

3 years ago

1.0.43

3 years ago

1.0.39

3 years ago

1.0.38

3 years ago

1.0.40

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.37

3 years ago

1.0.34

3 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago