Total Pageviews

Saturday 12 March 2022

DPlayer-Lite

such a lovely HTML5 video player.

DPlayer Lite Supports:

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

Usage

NameDefaultNote
containerdocument.getElementsByClassName('dplayer')[0]player container
autoplayfalsenot supported in mobile browsers
theme'#b7daff'main color
livefalseenable live mode
loopfalseupon reaching the end of the video, automatically seek back to the start
langnavigator.language.toLowerCase()values: 'en', 'zh-cn', 'zh-tw'
preload'auto'values: 'none', 'metadata', 'auto'
volume1default volume
videoundefinedvideo info
video.urlundefinedvideo link
video.picundefinedvideo poster
video.type'auto'HLS support FLV support MPEG DASH support WebTorrent support
mutextruepause other players when this player start play

from https://github.com/kn007/DPlayer-Lite

----

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

中文文档

Danmaku api

Plugins

Other

Who use DPlayer?

from  https://github.com/DIYgod/DPlayer
----

https://github.com/MoePlayer

No comments:

Post a Comment