Version Description
- September 17, 2014 =
- Fixed responsive height for videos using WordPress Default player.
- Better fix for bug that prevented choosing thumbnails from the small video player in the new media library popup window in WordPress 4.0.
Download this release
Release Info
Developer | kylegilman |
Plugin | Video Embed & Thumbnail Generator |
Version | 4.3.5 |
Comparing to | |
See all releases |
Code changes from version 4.3.4 to 4.3.5
- js/kgvid_video_embed.js +4 -1
- js/kgvid_video_plugin_admin.js +5 -2
- readme.txt +5 -1
- video-embed-thumbnail-generator.php +2 -2
js/kgvid_video_embed.js
CHANGED
@@ -22,7 +22,7 @@ jQuery(document).ready(function() {
|
|
22 |
|
23 |
});
|
24 |
|
25 |
-
function kgvid_SetVideo(id) {
|
26 |
|
27 |
//set the viewport meta tag so the gallery fits in iOS
|
28 |
var viewport_meta = jQuery('meta[name="viewport"]').first();
|
@@ -426,6 +426,9 @@ function kgvid_resize_video(id) {
|
|
426 |
jQuery('#video_'+id).attr('width',set_width).attr('height',set_height);
|
427 |
jQuery('#video_'+id+'_html5_api').attr('width',set_width).attr('height',set_height);
|
428 |
}
|
|
|
|
|
|
|
429 |
|
430 |
if ( video_vars.player_type == "iOS" ) {
|
431 |
jQuery('#video_'+id).attr('width',set_width).attr('height',set_height);
|
22 |
|
23 |
});
|
24 |
|
25 |
+
function kgvid_SetVideo(id) { //for galleries
|
26 |
|
27 |
//set the viewport meta tag so the gallery fits in iOS
|
28 |
var viewport_meta = jQuery('meta[name="viewport"]').first();
|
426 |
jQuery('#video_'+id).attr('width',set_width).attr('height',set_height);
|
427 |
jQuery('#video_'+id+'_html5_api').attr('width',set_width).attr('height',set_height);
|
428 |
}
|
429 |
+
if ( video_vars.player_type == "WordPress Default" ) {
|
430 |
+
jQuery('#kgvid_'+id+'_wrapper').find('.wp-video').attr('style', 'width:'+set_width+'px; height:'+set_height+'px;');
|
431 |
+
}
|
432 |
|
433 |
if ( video_vars.player_type == "iOS" ) {
|
434 |
jQuery('#video_'+id).attr('width',set_width).attr('height',set_height);
|
js/kgvid_video_plugin_admin.js
CHANGED
@@ -77,6 +77,8 @@ function kgvid_break_video_on_close(postID) {
|
|
77 |
|
78 |
function kgvid_thumb_video_loaded(postID) { //sets up mini custom player for making thumbnails
|
79 |
|
|
|
|
|
80 |
jQuery('#attachments-'+postID+'-thumbgenerate').prop('disabled', false).attr('title', '');
|
81 |
jQuery('#attachments-'+postID+'-thumbrandomize').prop('disabled', false).attr('title', '');
|
82 |
jQuery('#attachments-'+postID+'-numberofthumbs').prop('disabled', false).attr('title', '');
|
@@ -84,12 +86,13 @@ function kgvid_thumb_video_loaded(postID) { //sets up mini custom player for mak
|
|
84 |
if ( jQuery('#thumb-video-'+postID+'-player .mejs-container').attr('id') !== undefined ) { //this is the Media Library pop-up introduced in WordPress 4.0
|
85 |
var mep_id = jQuery('#thumb-video-'+postID+'-player .mejs-container').attr('id');
|
86 |
mejs.players[mep_id].remove();
|
|
|
|
|
|
|
87 |
}
|
88 |
|
89 |
jQuery('#thumb-video-'+postID+'-container').show();
|
90 |
|
91 |
-
var video = document.getElementById('thumb-video-'+postID);
|
92 |
-
|
93 |
if ( video != null && jQuery(video).data('setup') != true ) {
|
94 |
|
95 |
if ( typeof wp !== 'undefined' ) {
|
77 |
|
78 |
function kgvid_thumb_video_loaded(postID) { //sets up mini custom player for making thumbnails
|
79 |
|
80 |
+
var video = document.getElementById('thumb-video-'+postID);
|
81 |
+
|
82 |
jQuery('#attachments-'+postID+'-thumbgenerate').prop('disabled', false).attr('title', '');
|
83 |
jQuery('#attachments-'+postID+'-thumbrandomize').prop('disabled', false).attr('title', '');
|
84 |
jQuery('#attachments-'+postID+'-numberofthumbs').prop('disabled', false).attr('title', '');
|
86 |
if ( jQuery('#thumb-video-'+postID+'-player .mejs-container').attr('id') !== undefined ) { //this is the Media Library pop-up introduced in WordPress 4.0
|
87 |
var mep_id = jQuery('#thumb-video-'+postID+'-player .mejs-container').attr('id');
|
88 |
mejs.players[mep_id].remove();
|
89 |
+
var current_source = video.currentSrc;
|
90 |
+
video.src = current_source.split("?")[0];
|
91 |
+
video.load();
|
92 |
}
|
93 |
|
94 |
jQuery('#thumb-video-'+postID+'-container').show();
|
95 |
|
|
|
|
|
96 |
if ( video != null && jQuery(video).data('setup') != true ) {
|
97 |
|
98 |
if ( typeof wp !== 'undefined' ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kyleg
|
|
4 |
Tags: video, video player, video gallery, html5, shortcode, thumbnail, preview, poster, ffmpeg, libav, embed, mobile, webm, ogg, h.264, h264, responsive, mp4, jwplayer
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 4.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -221,6 +221,10 @@ Enter the username & password in the plugin settings "FFMPEG Settings" tab, or u
|
|
221 |
|
222 |
== Changelog ==
|
223 |
|
|
|
|
|
|
|
|
|
224 |
= 4.3.4 - September 10, 2014 =
|
225 |
* Updated Video.js to version 4.8.1
|
226 |
* Added default gallery end option to play the next video or close the popup window.
|
4 |
Tags: video, video player, video gallery, html5, shortcode, thumbnail, preview, poster, ffmpeg, libav, embed, mobile, webm, ogg, h.264, h264, responsive, mp4, jwplayer
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 4.3.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
221 |
|
222 |
== Changelog ==
|
223 |
|
224 |
+
= 4.3.5 - September 17, 2014 =
|
225 |
+
* Fixed responsive height for videos using WordPress Default player.
|
226 |
+
* Better fix for bug that prevented choosing thumbnails from the small video player in the new media library popup window in WordPress 4.0.
|
227 |
+
|
228 |
= 4.3.4 - September 10, 2014 =
|
229 |
* Updated Video.js to version 4.8.1
|
230 |
* Added default gallery end option to play the next video or close the popup window.
|
video-embed-thumbnail-generator.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Video Embed & Thumbnail Generator
|
4 |
Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
|
5 |
Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG or LIBAV for encoding.
|
6 |
-
Version: 4.3.
|
7 |
Author: Kyle Gilman
|
8 |
Author URI: http://www.kylegilman.net/
|
9 |
Text Domain: video-embed-thumbnail-generator
|
@@ -54,7 +54,7 @@ function kgvid_default_options_fn() {
|
|
54 |
$edit_others_capable = kgvid_check_if_capable('edit_others_posts');
|
55 |
|
56 |
$options = array(
|
57 |
-
"version" => 4.
|
58 |
"embed_method" => "Video.js",
|
59 |
"jw_player_id" => "",
|
60 |
"template" => false,
|
3 |
Plugin Name: Video Embed & Thumbnail Generator
|
4 |
Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
|
5 |
Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG or LIBAV for encoding.
|
6 |
+
Version: 4.3.5
|
7 |
Author: Kyle Gilman
|
8 |
Author URI: http://www.kylegilman.net/
|
9 |
Text Domain: video-embed-thumbnail-generator
|
54 |
$edit_others_capable = kgvid_check_if_capable('edit_others_posts');
|
55 |
|
56 |
$options = array(
|
57 |
+
"version" => 4.305,
|
58 |
"embed_method" => "Video.js",
|
59 |
"jw_player_id" => "",
|
60 |
"template" => false,
|