Easy Video Player - Version 1.1.3

Version Description

  • mediaelement template now supports the video preload attribute
Download this release

Release Info

Developer naa986
Plugin Icon 128x128 Easy Video Player
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

Files changed (2) hide show
  1. easy-video-player.php +6 -2
  2. readme.txt +9 -2
easy-video-player.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Easy Video Player
4
- Version: 1.1.2
5
  Plugin URI: http://noorsplugin.com/wordpress-video-plugin/
6
  Author: naa986
7
  Author URI: http://noorsplugin.com/
@@ -17,7 +17,7 @@ if (!class_exists('EASY_VIDEO_PLAYER')) {
17
 
18
  class EASY_VIDEO_PLAYER {
19
 
20
- var $plugin_version = '1.1.2';
21
 
22
  function __construct() {
23
  define('EASY_VIDEO_PLAYER_VERSION', $this->plugin_version);
@@ -136,6 +136,7 @@ function evp_embed_video_handler($atts) {
136
  'poster' => '',
137
  'loop' => '',
138
  'muted' => '',
 
139
  'class' => '',
140
  'template' => '',
141
  ), $atts));
@@ -158,6 +159,9 @@ function evp_embed_video_handler($atts) {
158
  if (!empty($poster)){
159
  $attr['poster'] = $poster;
160
  }
 
 
 
161
  return wp_video_shortcode($attr);
162
  }
163
  //autoplay
1
  <?php
2
  /*
3
  Plugin Name: Easy Video Player
4
+ Version: 1.1.3
5
  Plugin URI: http://noorsplugin.com/wordpress-video-plugin/
6
  Author: naa986
7
  Author URI: http://noorsplugin.com/
17
 
18
  class EASY_VIDEO_PLAYER {
19
 
20
+ var $plugin_version = '1.1.3';
21
 
22
  function __construct() {
23
  define('EASY_VIDEO_PLAYER_VERSION', $this->plugin_version);
136
  'poster' => '',
137
  'loop' => '',
138
  'muted' => '',
139
+ 'preload' => 'metadata',
140
  'class' => '',
141
  'template' => '',
142
  ), $atts));
159
  if (!empty($poster)){
160
  $attr['poster'] = $poster;
161
  }
162
+ if (!empty($preload)){
163
+ $attr['preload'] = $preload;
164
+ }
165
  return wp_video_shortcode($attr);
166
  }
167
  //autoplay
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: naa986
3
  Donate link: http://noorsplugin.com/
4
  Tags: video, wpvideo, flash, html5, iPad, iphone, ipod, mobile, playlists, embed video, flowplayer, video html5, flash player, player, video player
5
  Requires at least: 4.3
6
- Tested up to: 4.5
7
- Stable tag: 1.1.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -85,6 +85,10 @@ If you want to use a different video player template you can specify it in the "
85
 
86
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" template="mediaelement"]`
87
 
 
 
 
 
88
  For detailed documentation please visit the [Easy Video Player](http://noorsplugin.com/wordpress-video-plugin/ "Video Plugin for WordPress") plugin page
89
 
90
  = Plugin Language Translation =
@@ -132,6 +136,9 @@ none
132
 
133
  == Changelog ==
134
 
 
 
 
135
  = 1.1.2 =
136
  * Added translation option so the plugin can take advantage of language packs
137
 
3
  Donate link: http://noorsplugin.com/
4
  Tags: video, wpvideo, flash, html5, iPad, iphone, ipod, mobile, playlists, embed video, flowplayer, video html5, flash player, player, video player
5
  Requires at least: 4.3
6
+ Tested up to: 4.6
7
+ Stable tag: 1.1.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
85
 
86
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" template="mediaelement"]`
87
 
88
+ By default, the mediaelement template only loads the "metadata" of a video when the page loads. You can set it to "auto" or "none" with the preload parameter in the shortcode.
89
+
90
+ `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" preload="auto" template="mediaelement"]`
91
+
92
  For detailed documentation please visit the [Easy Video Player](http://noorsplugin.com/wordpress-video-plugin/ "Video Plugin for WordPress") plugin page
93
 
94
  = Plugin Language Translation =
136
 
137
  == Changelog ==
138
 
139
+ = 1.1.3 =
140
+ * mediaelement template now supports the video preload attribute
141
+
142
  = 1.1.2 =
143
  * Added translation option so the plugin can take advantage of language packs
144