Skip to content

Fierce-Cat/DPlayer-WordPress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DPlayer-WordPress: DPlayer for WordPress

DPlayer is such a lovely HTML5 danmaku video player by DIYGod, and it's used on many platforms (as listed below).

Today, DPlayer is coming to WordPress.

Usage is rather simple, and here is the template of shortcode we supported. [dplayer url="https://anotherhome.net/DIYgod-cannot-even-discribe.mp4" pic="https://anotherhome.com/DIYgod-cannot-even-discribe.png" autoplay="true" danmu="true"/]

Parameter 'url' is the source URL to the video file, you can upload the video to your WordPress library, then use it here. Parameter 'pic' is the poster of the video. And it's optional. Parameter 'autoplay', as the name suggests, if it is true, then once the video is prepared, it starts to play . Default false and it is optional also. Parameter 'screenshot', enable screenshot?. Optional and default false. Parameter 'loop', enable loop?. Optional and default false. Parameter 'preload', preload mode, 'auto', 'metatdata' or 'none'. Optional and default metadata. Parameter 'hotkey', enable builtin hotkey? including left, right and Space. Optional and default true. Parameter 'danmu', should DPlayer load danmaku. Default false and it's optional.

Screenshots

  1. Write the shortcode manually in your editor Screenshot 1

  2. Save and you’ll get this lovely danmuku video player! Screenshot 2

  3. Now we can edit danmaku API URL and token in settings page Screenshot 3

About

DPlayer for WordPress

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 97.5%
  • JavaScript 2.5%