1.27.28 • Published 1 month ago

dplayer-lite v1.27.28

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

🍭 Wow, such a lovely HTML5 video playe

🍭 Forked from DIYgod/DPlayer

🍭 Remove thumbnails, subtitle, danmaku, storage

🍭 Add muted

Introduction

image

DPlayer is a lovely HTML5 video player to help people build video easily.

DPlayer supports:

  • Streaming formats
  • Media formats
    • MP4 H.264/AAC
    • MKV H.264/AAC
    • WebM
    • Ogg Theora Vorbis
  • Features
    • Screenshot
    • Hotkeys
    • Quality switching

Using DPlayer on your project? Let me know!

Docs

中文文档

Options

You can custom your player instance by those options

NameDefaultDescription
containerdocument.querySelector('.dplayer')player container
livefalseenable live mode, see #live
autoplayfalsevideo autoplay
theme'#b7daff'main color
loopfalsevideo loop
controlstrueshow or hide control bar
langnavigator.language.toLowerCase()values: 'en', 'zh-cn', 'zh-tw'
screenshotfalseenable screenshot, if true, video and video poster must enable Cross-Origin
airplayfalseenable airplay in Safari
chromecastfalseenable Chromecast
hotkeytrueenable hotkey, support FF, FR, volume control, play & pause
preload'auto'values: 'none', 'metadata', 'auto'
volume0.7default volume, notice that player will remember user setting, default volume will not work after user set volume themselves
playbackSpeed0.5, 0.75, 1, 1.25, 1.5, 2optional playback speed, or or you can set a custom one
logo-showing logo in the top left corner, you can adjust its size and position by CSS
preventClickTogglefalseprevent toggle video play/pause status when click player
video-video info
video.quality-see #Quality switching
video.defaultQuality-see #Quality switching
video.url-video url
video.pic-video poster
video.type'auto'values: 'auto', 'hls', 'flv', 'dash', 'webtorrent', 'normal' or other custom type, see #MSE support
video.customType-custom video type, see #MSE support
contextmenu[]custom contextmenu
highlight[]custom time markers upon progress bar
mutextrueprevent to play multiple player at the same time, pause other players when this player start play
mutedfalsevideo muted

Thanks

Sponsors

Contributors

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.27.27

1 month ago

1.27.26

1 month ago

1.27.28

1 month ago

1.27.25

6 months ago

1.27.24

6 months ago

1.27.23

1 year ago

1.27.22

1 year ago

1.27.21

1 year ago

1.27.20

1 year ago

1.27.19

1 year ago

1.27.18

1 year ago

1.27.17

1 year ago

1.27.1-c

2 years ago

1.27.16

1 year ago

1.27.15

2 years ago

1.27.1-beta1

2 years ago

1.27.9

2 years ago

1.27.12

2 years ago

1.27.11

2 years ago

1.27.14

2 years ago

1.27.13

2 years ago

1.27.10

2 years ago

1.27.1-beta

2 years ago

1.27.0

2 years ago

1.27.8

2 years ago

1.27.7-beta.1

2 years ago

1.27.7

2 years ago

1.27.6

2 years ago

1.27.5

2 years ago

1.27.4

2 years ago

1.27.3

2 years ago

1.27.2

2 years ago

1.27.1

2 years ago