Changeset 1666497
- Timestamp:
- 05/29/2017 01:41:14 PM (9 years ago)
- Location:
- dplayer-for-wp
- Files:
-
- 4 edited
- 1 copied
-
tags/1.1.6 (copied) (copied from dplayer-for-wp/trunk)
-
tags/1.1.6/dplayer.php (modified) (3 diffs)
-
tags/1.1.6/readme.txt (modified) (3 diffs)
-
trunk/dplayer.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dplayer-for-wp/tags/1.1.6/dplayer.php
r1534780 r1666497 3 3 * Plugin Name: DPlayer for WordPress 4 4 * Description: Wow, such a lovely HTML5 danmaku video player comes to WordPress 5 * Version: 1.1. 45 * Version: 1.1.6 6 6 * Author: 0xBBC 7 7 * Author URI: https://blog.0xbbc.com/ … … 92 92 } 93 93 94 public static function dplayer_load($atts = [], $content = null, $tag = '') { 94 public static function dplayer_load($atts, $content, $tag) { 95 if ($atts == null) $atts = []; 96 if ($tag == null) $tag = ''; 97 95 98 // normalize attribute keys, lowercase 96 99 $atts = array_change_key_case((array)$atts, CASE_LOWER); … … 154 157 if (!self::$add_script) { 155 158 if ( get_option( 'kblog_enable_flv' ) ) { 156 wp_enqueue_script( '0-dplayer-flv', plugins_url('js/plugin/flv.min.js', __FILE__), false, '1.1. 2', false );159 wp_enqueue_script( '0-dplayer-flv', plugins_url('js/plugin/flv.min.js', __FILE__), false, '1.1.3', false ); 157 160 } 158 161 if ( get_option( 'kblog_enable_hls' ) ) { 159 wp_enqueue_script( '0-dplayer-hls', plugins_url('js/plugin/hls.min.js', __FILE__), false, '1.1. 2', false );162 wp_enqueue_script( '0-dplayer-hls', plugins_url('js/plugin/hls.min.js', __FILE__), false, '1.1.3', false ); 160 163 } 161 wp_enqueue_script( 'dplayer', plugins_url('js/DPlayer.min.js', __FILE__), false, '1.1. 2', false );164 wp_enqueue_script( 'dplayer', plugins_url('js/DPlayer.min.js', __FILE__), false, '1.1.3', false ); 162 165 wp_enqueue_script( 'init-dplayer', plugins_url('js/init-dplayer.js', __FILE__), false, '1.0.0', false ); 163 166 self::$add_script = true; -
dplayer-for-wp/tags/1.1.6/readme.txt
r1534781 r1666497 3 3 Tags: video, player, shortcode 4 4 Requires at least: 3.0.1 5 Tested up to: 4. 6.16 Stable tag: 1.1. 45 Tested up to: 4.7.3 6 Stable tag: 1.1.6 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 14 14 15 15 Usage is rather simple, and here is the template of shortcode we supported. 16 [dplayer url="http ://xxx.xxx.com/xxx.mp4" pic="http://xxx.xxx.com/xxx.png" autoplay="true" danmu="true"/]16 [dplayer url="https://anotherhome.net/DIYgod-cannot-even-discribe.mp4" pic="https://anotherhome.com/DIYgod-cannot-even-discribe.png" autoplay="true" danmu="true"/] 17 17 18 18 Parameter 'url' is the source URL to the video file, you can upload the video to your WordPress library, then use it here. … … 40 40 == Changelog == 41 41 42 = 1.1.6 = 43 Improve compatibility on old versions of PHP. 44 45 = 1.1.5 = 46 Update DPlayer to release 1.1.3. Please visit https://github.com/DIYgod/DPlayer/releases for details. 47 42 48 = 1.1.4 = 43 * Extended support for bilibili param 44 45 now you can use either to load additional danmaku. 46 49 * Extended support for bilibili param, now you can use either 47 50 - bilibili='23333' 48 51 - bilibili='http://www.bilibili.com/video/av2333333/index_233.html#page=2333' 52 to load additional danmaku. 49 53 50 54 This plugin will give you exactly the danma that you need, which means, 51 55 52 If you give the original URL to the bilibili video, this plugin will identify the URL format, load the right danmaku. 53 54 In this example, 'http://www.bilibili.com/video/av2333333/index_233.html#page=2333' is given. And the plugin knows that aid is 2333333 and your requested page is 2333. 55 56 (According to bilibili, 'index_233.html#page=2333' means that you starts at page 233 but currently you're watching page 2333) 56 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) 57 57 58 58 = 1.1.3 = -
dplayer-for-wp/trunk/dplayer.php
r1534780 r1666497 3 3 * Plugin Name: DPlayer for WordPress 4 4 * Description: Wow, such a lovely HTML5 danmaku video player comes to WordPress 5 * Version: 1.1. 45 * Version: 1.1.6 6 6 * Author: 0xBBC 7 7 * Author URI: https://blog.0xbbc.com/ … … 92 92 } 93 93 94 public static function dplayer_load($atts = [], $content = null, $tag = '') { 94 public static function dplayer_load($atts, $content, $tag) { 95 if ($atts == null) $atts = []; 96 if ($tag == null) $tag = ''; 97 95 98 // normalize attribute keys, lowercase 96 99 $atts = array_change_key_case((array)$atts, CASE_LOWER); … … 154 157 if (!self::$add_script) { 155 158 if ( get_option( 'kblog_enable_flv' ) ) { 156 wp_enqueue_script( '0-dplayer-flv', plugins_url('js/plugin/flv.min.js', __FILE__), false, '1.1. 2', false );159 wp_enqueue_script( '0-dplayer-flv', plugins_url('js/plugin/flv.min.js', __FILE__), false, '1.1.3', false ); 157 160 } 158 161 if ( get_option( 'kblog_enable_hls' ) ) { 159 wp_enqueue_script( '0-dplayer-hls', plugins_url('js/plugin/hls.min.js', __FILE__), false, '1.1. 2', false );162 wp_enqueue_script( '0-dplayer-hls', plugins_url('js/plugin/hls.min.js', __FILE__), false, '1.1.3', false ); 160 163 } 161 wp_enqueue_script( 'dplayer', plugins_url('js/DPlayer.min.js', __FILE__), false, '1.1. 2', false );164 wp_enqueue_script( 'dplayer', plugins_url('js/DPlayer.min.js', __FILE__), false, '1.1.3', false ); 162 165 wp_enqueue_script( 'init-dplayer', plugins_url('js/init-dplayer.js', __FILE__), false, '1.0.0', false ); 163 166 self::$add_script = true; -
dplayer-for-wp/trunk/readme.txt
r1534781 r1666497 3 3 Tags: video, player, shortcode 4 4 Requires at least: 3.0.1 5 Tested up to: 4. 6.16 Stable tag: 1.1. 45 Tested up to: 4.7.5 6 Stable tag: 1.1.6 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 14 14 15 15 Usage is rather simple, and here is the template of shortcode we supported. 16 [dplayer url="http ://xxx.xxx.com/xxx.mp4" pic="http://xxx.xxx.com/xxx.png" autoplay="true" danmu="true"/]16 [dplayer url="https://anotherhome.net/DIYgod-cannot-even-discribe.mp4" pic="https://anotherhome.com/DIYgod-cannot-even-discribe.png" autoplay="true" danmu="true"/] 17 17 18 18 Parameter 'url' is the source URL to the video file, you can upload the video to your WordPress library, then use it here. … … 40 40 == Changelog == 41 41 42 = 1.1.6 = 43 Improve compatibility on old versions of PHP. 44 45 = 1.1.5 = 46 Update DPlayer to release 1.1.3. Please visit https://github.com/DIYgod/DPlayer/releases for details. 47 42 48 = 1.1.4 = 43 * Extended support for bilibili param 44 45 now you can use either to load additional danmaku. 46 49 * Extended support for bilibili param, now you can use either 47 50 - bilibili='23333' 48 51 - bilibili='http://www.bilibili.com/video/av2333333/index_233.html#page=2333' 52 to load additional danmaku. 49 53 50 54 This plugin will give you exactly the danma that you need, which means, 51 55 52 If you give the original URL to the bilibili video, this plugin will identify the URL format, load the right danmaku. 53 54 In this example, 'http://www.bilibili.com/video/av2333333/index_233.html#page=2333' is given. And the plugin knows that aid is 2333333 and your requested page is 2333. 55 56 (According to bilibili, 'index_233.html#page=2333' means that you starts at page 233 but currently you're watching page 2333) 56 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) 57 57 58 58 = 1.1.3 =
Note: See TracChangeset
for help on using the changeset viewer.