wordpress加入在线dplayer视频播放器

【电影】 尚气与十环传奇

  1. === Plugin Name ===
  2. Contributors: 0xbbc
  3. Tags: video, player, shortcode
  4. Requires at least: 3.0.1
  5. Tested up to: 4.9.8
  6. Stable tag: 1.2.5
  7. License: GPLv3
  8. License URI: http://www.gnu.org/licenses/gpl-3.0.html
  9.  
  10. == Description ==
  11. cdnjs.cat.net
  12.  
  13.  
  14.  
  15.  
  16. [DPlayer](http://github.com/DIYgod/DPlayer) is such a lovely HTML5 danmaku video player by DIYGod, and it's used on many platforms.
  17. Today, DPlayer is coming to WordPress.
  18.  
  19. Usage is rather simple, and here is the template of shortcode we supported.
  20. [dplayer url="https://anotherhome.net/DIYgod-cannot-even-discribe.mp4" pic="https://anotherhome.com/DIYgod-cannot-even-discribe.png" autoplay="true" danmu="true"/]
  21.  
  22. Parameter 'url' is the source URL to the video file, you can upload the video to your WordPress library, then use it here.
  23. Parameter 'pic' is the poster of the video. And it's optional.
  24. 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.
  25. Parameter 'screenshot', enable screenshot?. Optional and default false.
  26. Parameter 'loop', enable loop?. Optional and default false.
  27. Parameter 'preload', preload mode, 'auto', 'metatdata' or 'none'. Optional and default metadata.
  28. Parameter 'hotkey', enable builtin hotkey? including left, right and Space. Optional and default true.
  29. Parameter 'bilibili', bilibili视频AV号 或者 完整的bilibili视频链接. Additional danmaku from bilibili
  30. Parameter 'danmu', should DPlayer load danmaku. Default false and it's optional.
  31.  
  32. == Installation ==
  33.  
  34. 1. Upload the plugin files to the `/wp-content/plugins/dplayer` directory, or install the plugin through the WordPress plugins screen directly.
  35. 2. Activate the plugin through the 'Plugins' screen in WordPress
  36. 3. No configuration is needed, enjoy it!
  37.  
  38. == Screenshots ==
  39.  
  40. 1. Write the shortcode manually in your editor
  41. 2. Save and you’ll get this lovely danmuku video player!
  42. 3. Config Danmaku API URL and token in settings page
  43.  
  44. == Changelog ==
  45.  
  46. = 1.2.5 =
  47. Fix a bug
  48.  
  49. = 1.2.4 =
  50. Add shortcode id, shortcode table is here, https://github.com/MoePlayer/DPlayer-WordPress
  51.  
  52. = 1.2.3 =
  53. boost to DPlayer 1.25.0
  54.  
  55. = 1.2.2 =
  56. BootCDN updates too slowly. Change to cdnjs.cat.net
  57.  
  58. = 1.2.1 =
  59. Using BootCDN
  60.  
  61. = 1.2.0 =
  62. Updating DPlayer to its master branch
  63.  
  64. = 1.1.8 =
  65. Using the right API to enqueue DPlayer CSS.
  66.  
  67. = 1.1.7 =
  68. Update DPlayer to release 1.4.0. Please visit https://github.com/DIYgod/DPlayer/releases for details.
  69.  
  70. = 1.1.6 =
  71. Improve compatibility on old versions of PHP.
  72.  
  73. = 1.1.5 =
  74. Update DPlayer to release 1.1.3. Please visit https://github.com/DIYgod/DPlayer/releases for details.
  75.  
  76. = 1.1.4 =
  77. * Extended support for bilibili param, now you can use either
  78. - bilibili='23333'
  79. - bilibili='http://www.bilibili.com/video/av2333333/index_233.html#page=2333'
  80. to load additional danmaku.
  81.  
  82. This plugin will give you exactly the danma that you need, which means,
  83.  
  84. 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)
  85.  
  86. = 1.1.3 =
  87. * Fixed bilibili danmaku support
  88.  
  89. = 1.1.2 =
  90. * Update DPlayer to version 1.1.2
  91. * Add support for hls.min.js
  92. * Add support for flv.min.js
  93.  
  94. = 1.0.9 =
  95. * Update DPlayer to version 1.1.1
  96.  
  97. = 1.0.8 =
  98. * Add settings page for API URL and token
  99.  
  100. = 1.0.7 =
  101. * Change to new API URL '//danmaku.daoapp.io/'
  102. * Update DPlayer to 1.0.10
  103.  
  104. = 1.0.6 =
  105. * Compatibility with PHP 5
  106.  
  107. = 1.0.5 =
  108. * Using preload="metadata" in js/DPlayer.min.js
  109.  
  110. = 1.0.4 =
  111. * Upgrade to GPLv2 License
  112.  
  113. = 1.0.3 =
  114. * Fixed a bug when assign default value
  115.  
  116. = 1.0.2 =
  117. * Conform to the WordPress readme.txt standard
  118. * Add screenshots
  119.  
  120. = 1.0.1 =
  121. * Returns the generated code instead of echoing it
  122.  
  123. = 1.0.0 =w
  124. * Initial version
  125.  
  126. == Upgrade Notice ==
  127.  
  128. = 1.0.1 =
  129. * Returns the generated code instead of echoing it

发表评论

邮箱地址不会被公开。 必填项已用*标注