DPlayer for WordPress free WordPress plugin
Description
DPlayer for WordPress free WordPress plugin
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.