Video Embed & Thumbnail Generator - Version 4.4.1

Version Description

  • October 28, 2014 =
  • Fixed bug that loaded resolution selector plugin too late in the page.
  • Fixed bug that displayed the video poster image while switching resolutions.
Download this release

Release Info

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

Code changes from version 4.4 to 4.4.1

js/kgvid_video_embed.js CHANGED
@@ -283,7 +283,7 @@ function kgvid_setup_video(id) {
283
  });
284
 
285
  player.on( 'changeRes', function() {
286
- if ( jQuery('#video_'+id).hasClass('vjs-has-started') == false ) {
287
  var poster = jQuery('#video_'+id+' video').attr('poster');
288
  jQuery('#video_'+id+' video').removeAttr('poster'); //prevents poster from showing during resolution switch
289
  player.on ( 'ended', function() { jQuery('#video_'+id+' video').attr('poster', poster); } );
283
  });
284
 
285
  player.on( 'changeRes', function() {
286
+ if ( jQuery('#video_'+id).hasClass('vjs-has-started') == true ) {
287
  var poster = jQuery('#video_'+id+' video').attr('poster');
288
  jQuery('#video_'+id+' video').removeAttr('poster'); //prevents poster from showing during resolution switch
289
  player.on ( 'ended', function() { jQuery('#video_'+id+' video').attr('poster', poster); } );
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, resolution
5
  Requires at least: 3.5
6
  Tested up to: 4.0
7
- Stable tag: 4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -223,6 +223,10 @@ Enter the username & password in the plugin settings "FFMPEG Settings" tab, or u
223
 
224
  == Changelog ==
225
 
 
 
 
 
226
  = 4.4 - October 28, 2014 =
227
  * Added H.264 HTML5 video resolution switcher for the Video.js player. Automatically selects the appropriate resolution for the size of the displayed video and allows manual user switching on desktop computers.
228
  * Added option to set videos to automatically fill their containers.
4
  Tags: video, video player, video gallery, html5, shortcode, thumbnail, preview, poster, ffmpeg, libav, embed, mobile, webm, ogg, h.264, h264, responsive, mp4, jwplayer, resolution
5
  Requires at least: 3.5
6
  Tested up to: 4.0
7
+ Stable tag: 4.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
223
 
224
  == Changelog ==
225
 
226
+ = 4.4.1 - October 28, 2014 =
227
+ * Fixed bug that loaded resolution selector plugin too late in the page.
228
+ * Fixed bug that displayed the video poster image while switching resolutions.
229
+
230
  = 4.4 - October 28, 2014 =
231
  * Added H.264 HTML5 video resolution switcher for the Video.js player. Automatically selects the appropriate resolution for the size of the displayed video and allows manual user switching on desktop computers.
232
  * Added option to set videos to automatically fill their containers.
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.4
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
  Text Domain: video-embed-thumbnail-generator
@@ -58,7 +58,7 @@ function kgvid_default_options_fn() {
58
  $edit_others_capable = kgvid_check_if_capable('edit_others_posts');
59
 
60
  $options = array(
61
- "version" => 4.4,
62
  "embed_method" => "Video.js",
63
  "jw_player_id" => "",
64
  "template" => false,
@@ -1401,6 +1401,7 @@ function kgvid_enqueue_shortcode_scripts() {
1401
  $options = kgvid_get_options();
1402
 
1403
  if ( $options['embed_method'] == "Video.js" || $options['embed_method'] == "Strobe Media Playback" ) {
 
1404
  wp_enqueue_script( 'video-js', plugins_url("", __FILE__).'/video-js/video.js', '', '4.9.1', true );
1405
  add_action('wp_footer', 'kgvid_print_videojs_footer', 99);
1406
  }
@@ -1844,7 +1845,6 @@ function KGVID_shortcode($atts, $content = ''){
1844
  if ( $format_stats['type'] == 'h264' ) {
1845
  $sources[$source_key] .= ' data-res="'.$format_stats['label'].'"';
1846
  if ( $mp4already ) { //there is more than one resolution available
1847
- wp_enqueue_script( 'video-quality-selector', plugins_url("", __FILE__).'/video-js/video-quality-selector.js', array('video-js'), $options['version'], true );
1848
  $enable_resolutions_plugin = true;
1849
  }
1850
  $mp4already = true;
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.4.1
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
  Text Domain: video-embed-thumbnail-generator
58
  $edit_others_capable = kgvid_check_if_capable('edit_others_posts');
59
 
60
  $options = array(
61
+ "version" => 4.41,
62
  "embed_method" => "Video.js",
63
  "jw_player_id" => "",
64
  "template" => false,
1401
  $options = kgvid_get_options();
1402
 
1403
  if ( $options['embed_method'] == "Video.js" || $options['embed_method'] == "Strobe Media Playback" ) {
1404
+ wp_enqueue_script( 'video-quality-selector', plugins_url("", __FILE__).'/video-js/video-quality-selector.js', array('video-js'), $options['version'], true );
1405
  wp_enqueue_script( 'video-js', plugins_url("", __FILE__).'/video-js/video.js', '', '4.9.1', true );
1406
  add_action('wp_footer', 'kgvid_print_videojs_footer', 99);
1407
  }
1845
  if ( $format_stats['type'] == 'h264' ) {
1846
  $sources[$source_key] .= ' data-res="'.$format_stats['label'].'"';
1847
  if ( $mp4already ) { //there is more than one resolution available
 
1848
  $enable_resolutions_plugin = true;
1849
  }
1850
  $mp4already = true;