Video Embed & Thumbnail Generator - Version 4.6.2

Version Description

The plugin is still completely free until version 5.0. Video.js users will notice an updated player design if updating from 4.5.5.

Download this release

Release Info

Developer kylegilman
Plugin Icon 128x128 Video Embed & Thumbnail Generator
Version 4.6.2
Comparing to
See all releases

Code changes from version 4.6.1 to 4.6.2

js/kgvid_video_embed.js CHANGED
@@ -10,7 +10,7 @@ jQuery('.kgvid_videodiv').each(function(){ //setup individual videos. WordPress
10
  if ( video_vars.resize == "true" ) {
11
  videojs_options.fluid = true;
12
  }
13
- if ( video_vars.width != undefined && video_vars.height != undefined ) {
14
  videojs_options.aspectRatio = video_vars.width + ':' + video_vars.height;
15
  }
16
  if ( video_vars.nativecontrolsfortouch == "true" ) {
10
  if ( video_vars.resize == "true" ) {
11
  videojs_options.fluid = true;
12
  }
13
+ if ( video_vars.width != undefined && video_vars.width.indexOf('%') === -1 && video_vars.height != undefined ) {
14
  videojs_options.aspectRatio = video_vars.width + ':' + video_vars.height;
15
  }
16
  if ( video_vars.nativecontrolsfortouch == "true" ) {
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, video thumbnail, preview, poster, ffmpeg, libav, embed, oembed, mobile, webm, ogg, h.264, h264, vp9, responsive, mp4, jwplayer, resolution, analytics
5
  Requires at least: 4.4
6
  Tested up to: 4.5
7
- Stable tag: 4.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -87,9 +87,9 @@ I'm not really a software developer. I'm just a film editor with some time on hi
87
  * `order="ASC/DESC"` sort order.
88
  * `poster="http://www.example.com/image.jpg"` sets the thumbnail.
89
  * `endofvideooverlay="http://www.example.com/end_image.jpg` sets the image shown when the video ends.
90
- * `width="xxx"`
91
- * `height="xxx"`
92
- * `fullwidth="true/false"` set video to always expand to fill its container.`
93
  * `align="left/right/center"`
94
  * `inline="true/false"` allow other content on the same line as the video
95
  * `volume="0.x"` pre-sets the volume for unusually loud videos. Value between 0 and 1.
@@ -236,6 +236,11 @@ Enter the username & password in the plugin settings "FFMPEG Settings" tab, or u
236
 
237
  == Changelog ==
238
 
 
 
 
 
 
239
  = 4.6.1 - May 1, 2016 =
240
  * Fixed bug that changed the way Video.js players were resized when the specified dimensions did not match the video's actual dimensions.
241
  * Adjusted CSS for video overlay bar and z-index of the Video.js play button.
@@ -462,11 +467,14 @@ Enter the username & password in the plugin settings "FFMPEG Settings" tab, or u
462
 
463
  == Upgrade Notice ==
464
 
 
 
 
465
  = 4.6.1 =
466
- It's safe to update. The plugin is still completely free until version 5.0. Video.js users will notice an updated player design.
467
 
468
  = 4.6 =
469
- It's safe to update. The plugin is still completely free until version 5.0. Video.js users will notice an updated player design.
470
 
471
  = 4.5.2 =
472
  This is probably the last completely free major release. Some advanced features will be converted to premium add-ons in the future. More info in the support forum.
4
  Tags: video, video player, video gallery, html5, shortcode, thumbnail, video thumbnail, preview, poster, ffmpeg, libav, embed, oembed, mobile, webm, ogg, h.264, h264, vp9, responsive, mp4, jwplayer, resolution, analytics
5
  Requires at least: 4.4
6
  Tested up to: 4.5
7
+ Stable tag: 4.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
87
  * `order="ASC/DESC"` sort order.
88
  * `poster="http://www.example.com/image.jpg"` sets the thumbnail.
89
  * `endofvideooverlay="http://www.example.com/end_image.jpg` sets the image shown when the video ends.
90
+ * `width="xxx"` preferred maximum width in pixels.
91
+ * `height="xxx"` preferred maximum height in pixels.
92
+ * `fullwidth="true/false"` set video to always expand to 100% of its container.
93
  * `align="left/right/center"`
94
  * `inline="true/false"` allow other content on the same line as the video
95
  * `volume="0.x"` pre-sets the volume for unusually loud videos. Value between 0 and 1.
236
 
237
  == Changelog ==
238
 
239
+ = 4.6.2 - May 2, 2016 =
240
+ * Fixed bug that disabled subtitles/captions button in the WordPress Default player.
241
+ * Fixed bug that broke Video.js players set to width="100%". This has never worked for the WordPress Default player. Using the plugin setting "Set all videos to expand to 100% of their containers" or the shortcode attribute fullwidth="true" is the recommended method, but players will work again for people using width="100%".
242
+ * Changed description of fullwidth setting to make it more clear.
243
+
244
  = 4.6.1 - May 1, 2016 =
245
  * Fixed bug that changed the way Video.js players were resized when the specified dimensions did not match the video's actual dimensions.
246
  * Adjusted CSS for video overlay bar and z-index of the Video.js play button.
467
 
468
  == Upgrade Notice ==
469
 
470
+ = 4.6.2 =
471
+ The plugin is still completely free until version 5.0. Video.js users will notice an updated player design if updating from 4.5.5.
472
+
473
  = 4.6.1 =
474
+ The plugin is still completely free until version 5.0. Video.js users will notice an updated player design.
475
 
476
  = 4.6 =
477
+ The plugin is still completely free until version 5.0. Video.js users will notice an updated player design.
478
 
479
  = 4.5.2 =
480
  This is probably the last completely free major release. Some advanced features will be converted to premium add-ons in the future. More info in the support forum.
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.6.1
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
  Text Domain: video-embed-thumbnail-generator
@@ -59,7 +59,7 @@ function kgvid_default_options_fn() {
59
  $edit_others_capable = kgvid_check_if_capable('edit_others_posts');
60
 
61
  $options = array(
62
- "version" => 4.601,
63
  "embed_method" => "Video.js",
64
  "jw_player_id" => "",
65
  "template" => false,
@@ -2511,7 +2511,7 @@ function kgvid_single_video_code($query_atts, $atts, $content, $post_id) {
2511
  }
2512
  elseif ( $kgvid_video_id === 0 ) {
2513
  wp_localize_script( 'wp-mediaelement', '_wpmejsSettings', array(
2514
- 'features' => array( 'playpause', 'progress', 'volume', 'fullscreen' ),
2515
  'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
2516
  'success' => 'kgvid_mejs_success'
2517
  ) );
@@ -2523,7 +2523,7 @@ function kgvid_single_video_code($query_atts, $atts, $content, $post_id) {
2523
  $content_width = $content_width_save;
2524
 
2525
  if ( $enable_resolutions_plugin ) {
2526
- $executed_shortcode = preg_replace( '/<source .*<a /', implode(' />', $sources).'<a ', $executed_shortcode );
2527
  }
2528
  if ( !empty($track_code) ) {
2529
  $executed_shortcode = preg_replace( '/<a /', $track_code.'<a ', $executed_shortcode );
@@ -4145,7 +4145,7 @@ add_action('admin_init', 'kgvid_video_embed_options_init' );
4145
  $options = kgvid_get_options();
4146
  echo __('Width:', 'video-embed-thumbnail-generator')." <input class='small-text affects_player' id='width' name='kgvid_video_embed_options[width]' type='text' value='".$options['width']."' /> ".__('Height:', 'video-embed-thumbnail-generator')." <input class='small-text affects_player' id='height' name='kgvid_video_embed_options[height]' type='text' value='".$options['height']."' /><br />";
4147
  echo "<input ".checked( $options['minimum_width'], "on", false )." id='minimum_width' name='kgvid_video_embed_options[minimum_width]' type='checkbox' /> <label for='minimum_width'>".__('Enlarge lower resolution videos to max width.', 'video-embed-thumbnail-generator')."</label> <span class='kgvid_tooltip wp-ui-text-highlight'><span class='kgvid_tooltip_classic'>".__('Usually if a video\'s resolution is less than the max width, the video player is set to the actual width of the video. Enabling this will always set the same width regardless of the quality of the video. When necessary you can override by setting the dimensions manually.', 'video-embed-thumbnail-generator')."</span></span><br />";
4148
- echo "<input ".checked( $options['fullwidth'], "on", false )." id='fullwidth' name='kgvid_video_embed_options[fullwidth]' type='checkbox' /> <label for='fullwidth'>".__('Set all videos to expand to fill their containers.', 'video-embed-thumbnail-generator')."</label> <span class='kgvid_tooltip wp-ui-text-highlight'><span class='kgvid_tooltip_classic'>".__('Enabling this will ignore any other width settings and set the width of the video to the width of the container it\'s in.', 'video-embed-thumbnail-generator')."</span></span><br />";
4149
  echo "<input ".checked( $options['inline'], "on", false )." id='inline' name='kgvid_video_embed_options[inline]' type='checkbox' /> <label for='inline'>".__('Allow other content on the same line as the video.', 'video-embed-thumbnail-generator')."</label>\n\t";
4150
  }
4151
 
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.6.2
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
  Text Domain: video-embed-thumbnail-generator
59
  $edit_others_capable = kgvid_check_if_capable('edit_others_posts');
60
 
61
  $options = array(
62
+ "version" => 4.602,
63
  "embed_method" => "Video.js",
64
  "jw_player_id" => "",
65
  "template" => false,
2511
  }
2512
  elseif ( $kgvid_video_id === 0 ) {
2513
  wp_localize_script( 'wp-mediaelement', '_wpmejsSettings', array(
2514
+ 'features' => array( 'playpause', 'progress', 'volume', 'tracks', 'fullscreen' ),
2515
  'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
2516
  'success' => 'kgvid_mejs_success'
2517
  ) );
2523
  $content_width = $content_width_save;
2524
 
2525
  if ( $enable_resolutions_plugin ) {
2526
+ $executed_shortcode = preg_replace( '/<source .*<a /', implode(' />', $sources).' /><a ', $executed_shortcode );
2527
  }
2528
  if ( !empty($track_code) ) {
2529
  $executed_shortcode = preg_replace( '/<a /', $track_code.'<a ', $executed_shortcode );
4145
  $options = kgvid_get_options();
4146
  echo __('Width:', 'video-embed-thumbnail-generator')." <input class='small-text affects_player' id='width' name='kgvid_video_embed_options[width]' type='text' value='".$options['width']."' /> ".__('Height:', 'video-embed-thumbnail-generator')." <input class='small-text affects_player' id='height' name='kgvid_video_embed_options[height]' type='text' value='".$options['height']."' /><br />";
4147
  echo "<input ".checked( $options['minimum_width'], "on", false )." id='minimum_width' name='kgvid_video_embed_options[minimum_width]' type='checkbox' /> <label for='minimum_width'>".__('Enlarge lower resolution videos to max width.', 'video-embed-thumbnail-generator')."</label> <span class='kgvid_tooltip wp-ui-text-highlight'><span class='kgvid_tooltip_classic'>".__('Usually if a video\'s resolution is less than the max width, the video player is set to the actual width of the video. Enabling this will always set the same width regardless of the quality of the video. When necessary you can override by setting the dimensions manually.', 'video-embed-thumbnail-generator')."</span></span><br />";
4148
+ echo "<input ".checked( $options['fullwidth'], "on", false )." id='fullwidth' name='kgvid_video_embed_options[fullwidth]' type='checkbox' /> <label for='fullwidth'>".__('Set all videos to expand to 100% of their containers.', 'video-embed-thumbnail-generator')."</label> <span class='kgvid_tooltip wp-ui-text-highlight'><span class='kgvid_tooltip_classic'>".__('Enabling this will ignore any other width settings and set the width of the video to the width of the container it\'s in.', 'video-embed-thumbnail-generator')."</span></span><br />";
4149
  echo "<input ".checked( $options['inline'], "on", false )." id='inline' name='kgvid_video_embed_options[inline]' type='checkbox' /> <label for='inline'>".__('Allow other content on the same line as the video.', 'video-embed-thumbnail-generator')."</label>\n\t";
4150
  }
4151