Version Description
- Added a new video player template - MediaElement
Download this release
Release Info
Developer | naa986 |
Plugin | Easy Video Player |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.1.0
- easy-video-player.php +25 -2
- readme.txt +19 -6
easy-video-player.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Easy Video Player
|
4 |
-
Version: 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.0
|
19 |
|
20 |
function __construct() {
|
21 |
define('EASY_VIDEO_PLAYER_VERSION', $this->plugin_version);
|
@@ -137,7 +137,30 @@ function evp_embed_video_handler($atts) {
|
|
137 |
'poster' => '',
|
138 |
'loop' => '',
|
139 |
'class' => '',
|
|
|
140 |
), $atts));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
if ($autoplay == "true") {
|
142 |
$autoplay = " autoplay";
|
143 |
} else {
|
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 |
|
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);
|
137 |
'poster' => '',
|
138 |
'loop' => '',
|
139 |
'class' => '',
|
140 |
+
'template' => '',
|
141 |
), $atts));
|
142 |
+
//check if mediaelement template is specified
|
143 |
+
if($template=='mediaelement'){
|
144 |
+
$attr = array();
|
145 |
+
$attr['src'] = $url;
|
146 |
+
if(is_numeric($width)){
|
147 |
+
$attr['width'] = $width;
|
148 |
+
}
|
149 |
+
if(is_numeric($height)){
|
150 |
+
$attr['height'] = $height;
|
151 |
+
}
|
152 |
+
if ($autoplay == "true"){
|
153 |
+
$attr['autoplay'] = 'on';
|
154 |
+
}
|
155 |
+
if ($loop == "true"){
|
156 |
+
$attr['loop'] = 'on';
|
157 |
+
}
|
158 |
+
if (!empty($poster)){
|
159 |
+
$attr['poster'] = $poster;
|
160 |
+
}
|
161 |
+
return wp_video_shortcode($attr);
|
162 |
+
}
|
163 |
+
//
|
164 |
if ($autoplay == "true") {
|
165 |
$autoplay = " autoplay";
|
166 |
} else {
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
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: 3
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.0
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -16,12 +16,15 @@ Easy Video Player is a user-friendly WordPress plugin to showcase your videos. Y
|
|
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 |
* Customize the video player using modifier classes
|
24 |
* Embed videos using three different skins
|
|
|
25 |
|
26 |
= Easy Video Player Plugin Usage =
|
27 |
|
@@ -69,6 +72,12 @@ If you want a particular video to start playing again when it ends you can set t
|
|
69 |
|
70 |
`[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" loop="true"]`
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
For detailed documentation please visit the [Easy Video Player](http://noorsplugin.com/wordpress-video-plugin/) plugin page
|
73 |
|
74 |
= Recommended Reading =
|
@@ -105,12 +114,16 @@ Yes.
|
|
105 |
== Screenshots ==
|
106 |
|
107 |
1. Easy Video Player Demo
|
|
|
108 |
|
109 |
== Upgrade Notice ==
|
110 |
none
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
114 |
= 1.0.9 =
|
115 |
* Easy Video Player is now compatible with WordPress 4.3
|
116 |
|
2 |
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 |
|
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 |
* 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
|
28 |
|
29 |
= Easy Video Player Plugin Usage =
|
30 |
|
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:
|
78 |
+
|
79 |
+
`[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" template="mediaelement"]`
|
80 |
+
|
81 |
For detailed documentation please visit the [Easy Video Player](http://noorsplugin.com/wordpress-video-plugin/) plugin page
|
82 |
|
83 |
= Recommended Reading =
|
114 |
== Screenshots ==
|
115 |
|
116 |
1. Easy Video Player Demo
|
117 |
+
2. Easy Video Player Demo With MediaElement Template
|
118 |
|
119 |
== Upgrade Notice ==
|
120 |
none
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= 1.1.0 =
|
125 |
+
* Added a new video player template - MediaElement
|
126 |
+
|
127 |
= 1.0.9 =
|
128 |
* Easy Video Player is now compatible with WordPress 4.3
|
129 |
|