Video Embed & Thumbnail Generator - Version 2.0.5

Version Description

  • April 20, 2012 =
  • Fixed "Wrong datatype for second argument" error on line 339 and subsequent automatic replacement of original videos with Mobile/H.264 versions whether they exist or not.
Download this release

Release Info

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

Code changes from version 2.0.4 to 2.0.5

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kyleg
4
Tags: video, html5, shortcode, thumbnail, ffmpeg, embed, mobile, webm, ogg, h.264
5
Requires at least: 3.0
6
Tested up to: 3.3.1
7
- Stable tag: 2.0.4
8
9
Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes.
10
@@ -113,12 +113,16 @@ Because I can't figure out how to do it. Windows works a little differently from
113
114
== Changelog ==
115
116
= 2.0.4 - April 19, 2012 =
117
* Once again changed the process checking for FFMPEG installations. Should be universal now.
118
* Added setting to turn on vpre flags for users with installed versions of FFMPEG old enough that libx264 requires vpre flags to operate.
119
* Added setting to replace the video attachment template with a page containing only the code necessary to display the video. Makes embedding your hosted videos on other sites easier.
120
* Fixed progress bar for older versions of FFMPEG.
121
* Added Flash fallback when OGV or WEBM videos are embedded.
122
123
= 2.0.3 - February 24, 2012 =
124
* When working with file formats that can't be embedded (WMV, AVI, etc) the option to embed the original file will be disabled if Mobile/H.264, WEBM, or OGV files are found.
4
Tags: video, html5, shortcode, thumbnail, ffmpeg, embed, mobile, webm, ogg, h.264
5
Requires at least: 3.0
6
Tested up to: 3.3.1
7
+ Stable tag: 2.0.5
8
9
Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes.
10
113
114
== Changelog ==
115
116
+ = 2.0.5 - April 20, 2012 =
117
+ * Fixed "Wrong datatype for second argument" error on line 339 and subsequent automatic replacement of original videos with Mobile/H.264 versions whether they exist or not.
118
+
119
= 2.0.4 - April 19, 2012 =
120
* Once again changed the process checking for FFMPEG installations. Should be universal now.
121
* Added setting to turn on vpre flags for users with installed versions of FFMPEG old enough that libx264 requires vpre flags to operate.
122
* Added setting to replace the video attachment template with a page containing only the code necessary to display the video. Makes embedding your hosted videos on other sites easier.
123
* Fixed progress bar for older versions of FFMPEG.
124
* Added Flash fallback when OGV or WEBM videos are embedded.
125
+ * Removed restriction on number of thumbnails that can be generated at once and added a cancel button while generating thumbnails.
126
127
= 2.0.3 - February 24, 2012 =
128
* When working with file formats that can't be embedded (WMV, AVI, etc) the option to embed the original file will be disabled if Mobile/H.264, WEBM, or OGV files are found.
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 for thumbnails and encodes. <a href="options-general.php?page=video-embed-thumbnail-generator.php">Settings</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kylegilman@gmail.com&item_name=Video%20Embed%20And%20Thumbnail%20Generator%20Plugin%20Donation/">Donate</a>
6
- Version: 2.0.4
7
Author: Kyle Gilman
8
Author URI: http://www.kylegilman.net/
9
@@ -329,6 +329,8 @@ function FMP_shortcode($atts, $content = ''){
329
global $wpdb;
330
$query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$content'";
331
$id = $wpdb->get_var($query);
332
333
if ($id != "") { $encodevideo_info = kg_encodevideo_info(trim($content), $id); }
334
else { $encodevideo_info = kg_encodevideo_info(trim($content), 'singleurl'); }
@@ -383,8 +385,6 @@ function FMP_shortcode($atts, $content = ''){
383
$isAndroid = $uagent_obj->DetectAndroid(); //determine if we're running on an Android device
384
$isTierIphone = $uagent_obj->DetectTierIphone(); //determine if we're running on a mobile device that plays iPhone-optimized video
385
$moviefilebasename = pathinfo(trim($content), PATHINFO_FILENAME);
386
- $moviefiletype = pathinfo(trim($content), PATHINFO_EXTENSION);
387
- $flashcompatible = array("flv", "f4v", "mp4", "mov", "m4v");
388
$h264compatible = array("mp4", "mov", "m4v");
389
390
$code = "<div id=\"flashcontent".$div_suffix."\">";
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 for thumbnails and encodes. <a href="options-general.php?page=video-embed-thumbnail-generator.php">Settings</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kylegilman@gmail.com&item_name=Video%20Embed%20And%20Thumbnail%20Generator%20Plugin%20Donation/">Donate</a>
6
+ Version: 2.0.5
7
Author: Kyle Gilman
8
Author URI: http://www.kylegilman.net/
9
329
global $wpdb;
330
$query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$content'";
331
$id = $wpdb->get_var($query);
332
+ $moviefiletype = pathinfo(trim($content), PATHINFO_EXTENSION);
333
+ $flashcompatible = array("flv", "f4v", "mp4", "mov", "m4v");
334
335
if ($id != "") { $encodevideo_info = kg_encodevideo_info(trim($content), $id); }
336
else { $encodevideo_info = kg_encodevideo_info(trim($content), 'singleurl'); }
385
$isAndroid = $uagent_obj->DetectAndroid(); //determine if we're running on an Android device
386
$isTierIphone = $uagent_obj->DetectTierIphone(); //determine if we're running on a mobile device that plays iPhone-optimized video
387
$moviefilebasename = pathinfo(trim($content), PATHINFO_FILENAME);
388
$h264compatible = array("mp4", "mov", "m4v");
389
390
$code = "<div id=\"flashcontent".$div_suffix."\">";