Easy Video Player - Version 1.1.4

Version Description

  • Added a new shortcode parameter - "video_id". It can be used to specify a custom ID for a video.
Download this release

Release Info

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

Code changes from version 1.1.3 to 1.1.4

Files changed (2) hide show
  1. easy-video-player.php +8 -3
  2. readme.txt +24 -21
easy-video-player.php CHANGED
@@ -1,7 +1,7 @@
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,7 +17,7 @@ if (!class_exists('EASY_VIDEO_PLAYER')) {
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);
@@ -137,6 +137,7 @@ function evp_embed_video_handler($atts) {
137
  'loop' => '',
138
  'muted' => '',
139
  'preload' => 'metadata',
 
140
  'class' => '',
141
  'template' => '',
142
  ), $atts));
@@ -164,6 +165,10 @@ function evp_embed_video_handler($atts) {
164
  }
165
  return wp_video_shortcode($attr);
166
  }
 
 
 
 
167
  //autoplay
168
  if ($autoplay == "true") {
169
  $autoplay = " autoplay";
@@ -220,7 +225,7 @@ EOT;
220
 
221
  $output = <<<EOT
222
  <div id="$player" data-ratio="$ratio" class="{$classes}">
223
- <video{$autoplay}{$loop}{$muted}>
224
  <source type="video/mp4" src="$url"/>
225
  </video>
226
  </div>
1
  <?php
2
  /*
3
  Plugin Name: Easy Video Player
4
+ Version: 1.1.4
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.4';
21
 
22
  function __construct() {
23
  define('EASY_VIDEO_PLAYER_VERSION', $this->plugin_version);
137
  'loop' => '',
138
  'muted' => '',
139
  'preload' => 'metadata',
140
+ 'video_id' => '',
141
  'class' => '',
142
  'template' => '',
143
  ), $atts));
165
  }
166
  return wp_video_shortcode($attr);
167
  }
168
+ //custom video id
169
+ if(!empty($video_id)){
170
+ $video_id = ' id="'.$video_id.'"';
171
+ }
172
  //autoplay
173
  if ($autoplay == "true") {
174
  $autoplay = " autoplay";
225
 
226
  $output = <<<EOT
227
  <div id="$player" data-ratio="$ratio" class="{$classes}">
228
+ <video{$video_id}{$autoplay}{$loop}{$muted}>
229
  <source type="video/mp4" src="$url"/>
230
  </video>
231
  </div>
readme.txt CHANGED
@@ -3,29 +3,29 @@ 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.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
 
11
- Easy Video Player is a WordPress video player that allows you to embed videos into your WordPress site.
12
 
13
  == Description ==
14
 
15
- Easy Video Player is a user-friendly WordPress video plugin to showcase your videos. You can embed both self-hosted videos or videos that are external hosted using direct links.
16
 
17
  = Easy Video Player Features =
18
 
19
- * Embed MP4 videos into your blog
20
- * Embed responsive videos for a better user experience while viewing from a mobile device
21
- * Embed HTML5 videos which are compatible with all major browsers
22
- * Embed videos with poster images
23
- * Embed videos with autoplay
24
- * Embed videos with loop
25
- * Embed videos with muted enabled
26
  * Customize the video player using modifier classes
27
- * Embed videos using three different skins
28
- * Embed videos using MediaElement player or default WordPress video player
29
 
30
  = Easy Video Player Plugin Usage =
31
 
@@ -39,11 +39,11 @@ Now it's time to finally embed a video shortcode. To do this create a new post/p
39
 
40
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4"]`
41
 
42
- here, url is a shortcode parameter that you need to replace the actual URL of the video file.
43
 
44
  **Video Autoplay**
45
 
46
- If you want a particular video to start playing when the page loads you can set the "autoplay" option to "true":
47
 
48
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" autoplay="true"]`
49
 
@@ -57,31 +57,31 @@ The height will be automatically determined based on the ratio (please see the "
57
 
58
  **Control Player Ratio**
59
 
60
- The player ratio is set to "0.417" by default. But you can override it by specifying a different ratio in the shortcode:
61
 
62
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" ratio="0.345"]`
63
 
64
  **Control Player Skin**
65
 
66
- By default, the player uses the "minimalist" skin. But you can override it by specifying a different skin in the shortcode:
67
 
68
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" class="functional"]`
69
 
70
  **Video Loop**
71
 
72
- If you want a particular video to start playing again when it ends you can set the "loop" option to "true":
73
 
74
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" loop="true"]`
75
 
76
  **Video Muted**
77
 
78
- If you want a particular video to play without any audio output you can set the "muted" option to "true":
79
 
80
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" muted="true"]`
81
 
82
  **Video Player Template**
83
 
84
- If you want to use a different video player template you can specify it in the "template" parameter:
85
 
86
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" template="mediaelement"]`
87
 
@@ -114,7 +114,7 @@ If you are a non-English speaker please help [translate Easy Video Player](https
114
 
115
  Yes.
116
 
117
- = Are the videos embedded by this plugin playable on iOS devices? =
118
 
119
  Yes.
120
 
@@ -136,6 +136,9 @@ none
136
 
137
  == Changelog ==
138
 
 
 
 
139
  = 1.1.3 =
140
  * mediaelement template now supports the video preload attribute
141
 
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.7
7
+ Stable tag: 1.1.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
+ Easy Video Player is a WordPress video player that allows you to add video to your WordPress site.
12
 
13
  == Description ==
14
 
15
+ Easy Video Player is a user-friendly WordPress video plugin to showcase your videos. You can embed both self-hosted videos or videos that are externally hosted using direct links.
16
 
17
  = Easy Video Player Features =
18
 
19
+ * Embed MP4 video into your website
20
+ * Embed responsive video for a better user experience while viewing from a mobile device
21
+ * Embed HTML5 video which are compatible with all major browsers
22
+ * Embed video with poster images
23
+ * Embed video with autoplay
24
+ * Embed video with loop
25
+ * Embed video with muted enabled
26
  * Customize the video player using modifier classes
27
+ * Embed video using three different skins
28
+ * Embed video using MediaElement player or default WordPress video player
29
 
30
  = Easy Video Player Plugin Usage =
31
 
39
 
40
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4"]`
41
 
42
+ Here, url is a shortcode parameter that you need to replace with the actual URL of the video file.
43
 
44
  **Video Autoplay**
45
 
46
+ If you want a particular video to start playing when the page loads, you can set the "autoplay" option to "true":
47
 
48
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" autoplay="true"]`
49
 
57
 
58
  **Control Player Ratio**
59
 
60
+ The player ratio is set to "0.417" by default. You can override it by specifying a different ratio in the shortcode:
61
 
62
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" ratio="0.345"]`
63
 
64
  **Control Player Skin**
65
 
66
+ By default, the player uses the "minimalist" skin. You can override it by specifying a different skin in the shortcode:
67
 
68
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" class="functional"]`
69
 
70
  **Video Loop**
71
 
72
+ If you want a particular video to start playing again when it ends, you can set the "loop" option to "true":
73
 
74
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" loop="true"]`
75
 
76
  **Video Muted**
77
 
78
+ If you want a particular video to play without any audio output, you can set the "muted" option to "true":
79
 
80
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" muted="true"]`
81
 
82
  **Video Player Template**
83
 
84
+ If you want to use a different video player template, you can specify it in the "template" parameter:
85
 
86
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" template="mediaelement"]`
87
 
114
 
115
  Yes.
116
 
117
+ = Are the videos embedded by this plugin playable on mobile devices (iOS/Android)? =
118
 
119
  Yes.
120
 
136
 
137
  == Changelog ==
138
 
139
+ = 1.1.4 =
140
+ * Added a new shortcode parameter - "video_id". It can be used to specify a custom ID for a video.
141
+
142
  = 1.1.3 =
143
  * mediaelement template now supports the video preload attribute
144