Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

DPlayer Lite, based on DPlayer 1.17.2 058ba44.

dplayer-lite-preview

DPlayer Lite Supports:

  • Streaming Formats
  • Media Formats
    • MP4 H.264
    • WebM
    • Ogg Theora Vorbis
  • Features
    • Hotkeys
    • Loop Control Button

Usage

Name Default Note
container document.getElementsByClassName('dplayer')[0] player container
autoplay false not supported in mobile browsers
theme '#b7daff' main color
loop false upon reaching the end of the video, automatically seek back to the start
lang navigator.language.toLowerCase() values: 'en', 'zh-cn', 'zh-tw'
preload 'auto' values: 'none', 'metadata', 'auto'
volume 1 default volume
video undefined video info
video.url undefined video link
video.pic undefined video poster
video.type 'auto' 'flv' for flv format, 'hls' for m3u8 format, 'dash' for mpd format, 'normal' for mp4 ogg and webm format, 'auto' for automatic detection according to video suffix
icons options.js#L12 UI icons
mutex true pause other players when this player start play
iconsColor #ffffff player icons color

Other

About

🍭 Wow, such a lovely HTML5 video player

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages