DPlayer is such a lovely HTML5 danmaku video player by DIYGod, and it’s used on many platforms.
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 ‘bilibili’, bilibili视频AV号 或者 完整的bilibili视频链接. Additional danmaku from bilibili
Parameter ‘danmu’, should DPlayer load danmaku. Default false and it’s optional.
- Upload the plugin files to the
/wp-content/plugins/dplayerdirectory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress
- No configuration is needed, enjoy it!
Contributors & Developers
“DPlayer for WordPress” is open source software. The following people have contributed to this plugin.Contributors
Translate “DPlayer for WordPress” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Fix a bug
Add shortcode id, shortcode table is here, https://github.com/MoePlayer/DPlayer-WordPress
boost to DPlayer 1.25.0
BootCDN updates too slowly. Change to cdnjs.cat.net
Updating DPlayer to its master branch
Using the right API to enqueue DPlayer CSS.
Update DPlayer to release 1.4.0. Please visit https://github.com/DIYgod/DPlayer/releases for details.
Improve compatibility on old versions of PHP.
Update DPlayer to release 1.1.3. Please visit https://github.com/DIYgod/DPlayer/releases for details.
- Extended support for bilibili param, now you can use either
to load additional danmaku.
This plugin will give you exactly the danma that you need, which means,
If you give the original URL to the bilibili video, this plugin will identify the URL format, load the right danmaku. In this example, ‘http://www.bilibili.com/video/av2333333/index_23333#page=233’ is given. And the plugin knows that aid is 2333333 and your requested page is 2333. (According to bilibili, ‘index_233.html#page=2333’ means that you starts at page 233 but currently you’re watching page 2333)
- Fixed bilibili danmaku support
- Update DPlayer to version 1.1.2
- Add support for hls.min.js
- Add support for flv.min.js
- Update DPlayer to version 1.1.1
- Add settings page for API URL and token
- Change to new API URL ‘//danmaku.daoapp.io/’
- Update DPlayer to 1.0.10
- Compatibility with PHP 5
- Using preload=”metadata” in js/DPlayer.min.js
- Upgrade to GPLv2 License
- Fixed a bug when assign default value
- Conform to the WordPress readme.txt standard
- Add screenshots
- Returns the generated code instead of echoing it
* Initial version