Easy Video Player - Version 1.1.1

Version Description

  • Added a new shortcode parameter "muted" to disable the audio output of the video
Download this release

Release Info

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

Code changes from version 1.1.0 to 1.1.1

Files changed (2) hide show
  1. easy-video-player.php +13 -4
  2. readme.txt +12 -2
easy-video-player.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Easy Video Player
4
- Version: 1.1.0
5
  Plugin URI: http://noorsplugin.com/wordpress-video-plugin/
6
  Author: naa986
7
  Author URI: http://noorsplugin.com/
@@ -15,7 +15,7 @@ if (!class_exists('EASY_VIDEO_PLAYER')) {
15
 
16
  class EASY_VIDEO_PLAYER {
17
 
18
- var $plugin_version = '1.1.0';
19
 
20
  function __construct() {
21
  define('EASY_VIDEO_PLAYER_VERSION', $this->plugin_version);
@@ -136,6 +136,7 @@ function evp_embed_video_handler($atts) {
136
  'autoplay' => 'false',
137
  'poster' => '',
138
  'loop' => '',
 
139
  'class' => '',
140
  'template' => '',
141
  ), $atts));
@@ -160,18 +161,26 @@ function evp_embed_video_handler($atts) {
160
  }
161
  return wp_video_shortcode($attr);
162
  }
163
- //
164
  if ($autoplay == "true") {
165
  $autoplay = " autoplay";
166
  } else {
167
  $autoplay = "";
168
  }
 
169
  if ($loop == "true") {
170
  $loop= " loop";
171
  }
172
  else{
173
  $loop= "";
174
  }
 
 
 
 
 
 
 
175
  $player = "fp" . uniqid();
176
  $color = '';
177
  if (!empty($poster)) {
@@ -208,7 +217,7 @@ EOT;
208
 
209
  $output = <<<EOT
210
  <div id="$player" data-ratio="$ratio" class="{$classes}">
211
- <video{$autoplay}{$loop}>
212
  <source type="video/mp4" src="$url"/>
213
  </video>
214
  </div>
1
  <?php
2
  /*
3
  Plugin Name: Easy Video Player
4
+ Version: 1.1.1
5
  Plugin URI: http://noorsplugin.com/wordpress-video-plugin/
6
  Author: naa986
7
  Author URI: http://noorsplugin.com/
15
 
16
  class EASY_VIDEO_PLAYER {
17
 
18
+ var $plugin_version = '1.1.1';
19
 
20
  function __construct() {
21
  define('EASY_VIDEO_PLAYER_VERSION', $this->plugin_version);
136
  'autoplay' => 'false',
137
  'poster' => '',
138
  'loop' => '',
139
+ 'muted' => '',
140
  'class' => '',
141
  'template' => '',
142
  ), $atts));
161
  }
162
  return wp_video_shortcode($attr);
163
  }
164
+ //autoplay
165
  if ($autoplay == "true") {
166
  $autoplay = " autoplay";
167
  } else {
168
  $autoplay = "";
169
  }
170
+ //loop
171
  if ($loop == "true") {
172
  $loop= " loop";
173
  }
174
  else{
175
  $loop= "";
176
  }
177
+ //muted
178
+ if($muted == "true"){
179
+ $muted = " muted";
180
+ }
181
+ else{
182
+ $muted = "";
183
+ }
184
  $player = "fp" . uniqid();
185
  $color = '';
186
  if (!empty($poster)) {
217
 
218
  $output = <<<EOT
219
  <div id="$player" data-ratio="$ratio" class="{$classes}">
220
+ <video{$autoplay}{$loop}{$muted}>
221
  <source type="video/mp4" src="$url"/>
222
  </video>
223
  </div>
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.3
7
- Stable tag: 1.1.0
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -22,6 +22,7 @@ Easy Video Player is a user-friendly WordPress plugin to showcase your videos. Y
22
  * Embed videos with poster images
23
  * Embed videos with autoplay
24
  * Embed videos with loop
 
25
  * Customize the video player using modifier classes
26
  * Embed videos using three different skins
27
  * Embed videos using MediaElement player or default WordPress video player
@@ -72,6 +73,12 @@ If you want a particular video to start playing again when it ends you can set t
72
 
73
  `[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" loop="true"]`
74
 
 
 
 
 
 
 
75
  *Video Player Template*
76
 
77
  If you want to use a different video player template you can specify it in the "template" parameter:
@@ -121,6 +128,9 @@ none
121
 
122
  == Changelog ==
123
 
 
 
 
124
  = 1.1.0 =
125
  * Added a new video player template - MediaElement
126
 
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.4
7
+ Stable tag: 1.1.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
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
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:
128
 
129
  == Changelog ==
130
 
131
+ = 1.1.1 =
132
+ * Added a new shortcode parameter "muted" to disable the audio output of the video
133
+
134
  = 1.1.0 =
135
  * Added a new video player template - MediaElement
136