Video Embed & Thumbnail Generator - Version 1.0.6

Version Description

  • November 6, 2011 =
  • Resetting to defaults on the plugin settings page resets to actual values now, instead of undefined constants.
Download this release

Release Info

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

Code changes from version 1.0.5 to 1.0.6

Files changed (2) hide show
  1. readme.txt +4 -1
  2. video-embed-thumbnail-generator.php +45 -23
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: kylegilman
3
  Tags: video, html5, shortcode, thumbnail, ffmpeg
4
  Requires at least: 3.0
5
  Tested up to: 3.3
6
- Stable tag: 1.0.5
7
 
8
  Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes.
9
 
@@ -85,6 +85,9 @@ Some of it will work without FFMPEG. You can generate embed codes for your video
85
 
86
  == Changelog ==
87
 
 
 
 
88
  = 1.0.5 - November 6, 2011 =
89
  * Fixed "Embed from URL" thumbnail creation. Generated thumbnails don't disappear anymore.
90
 
3
  Tags: video, html5, shortcode, thumbnail, ffmpeg
4
  Requires at least: 3.0
5
  Tested up to: 3.3
6
+ Stable tag: 1.0.6
7
 
8
  Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG for thumbnails and encodes.
9
 
85
 
86
  == Changelog ==
87
 
88
+ = 1.0.6 - November 6, 2011 =
89
+ * Resetting to defaults on the plugin settings page resets to actual values now, instead of undefined constants.
90
+
91
  = 1.0.5 - November 6, 2011 =
92
  * Fixed "Embed from URL" thumbnail creation. Generated thumbnails don't disappear anymore.
93
 
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: Generate video thumbnails, HTML5-compliant videos, and video embed shortcodes. Some functions require FFMPEG.
6
- Version: 1.0.5
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
 
@@ -289,28 +289,50 @@ function addFMPOptionsPage() {
289
 
290
  function FMPOptionsPage() {
291
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  if (isset($_POST['wp_FMP_reset'])) {
293
- update_option(wp_FMP_swfobject, wp_FMP_swfobject_default);
294
- update_option(wp_FMP_HTML5, wp_FMP_default_HTML5);
295
- update_option(wp_FMP_width, wp_FMP_default_width);
296
- update_option(wp_FMP_height, wp_FMP_default_height);
297
- update_option(wp_FMP_flashplayer, wp_FMP_flashplayer_default);
298
- update_option(wp_FMP_controlbar_style, wp_FMP_default_controlbar_style);
299
- update_option(wp_FMP_poster, wp_FMP_default_poster);
300
- update_option(wp_FMP_autohide, wp_FMP_default_autohide);
301
- update_option(wp_FMP_autoplay, wp_FMP_default_autoplay);
302
- update_option(wp_FMP_loop, wp_FMP_default_loop);
303
- update_option(wp_FMP_playbutton, wp_FMP_default_playbutton);
304
- update_option(wp_FMP_http_streaming, wp_FMP_default_http_streaming);
305
- update_option(wp_FMP_stream_type, wp_FMP_default_stream_type);
306
- update_option(wp_FMP_scale_mode, wp_FMP_default_scale_mode);
307
- update_option(wp_FMP_bgcolor, wp_FMP_default_bgcolor);
308
- update_option(wp_FMP_configuration, wp_FMP_default_configuration);
309
- update_option(wp_FMP_skin, wp_FMP_default_skin);
310
- update_option(wp_FMP_ffmpeg, wp_FMP_default_ffmpeg);
311
- update_option(wp_FMP_encodeogg, wp_FMP_default_encodeogg);
 
312
 
313
- echo "<div class='updated'><p><strong>Flash Media Playback plugin reset to default settings</strong></p></div>";
314
  }
315
 
316
  if (isset($_POST['wp_FMP_update'])) {
@@ -500,7 +522,7 @@ function FMPOptionsPage() {
500
  <th></th>
501
  <td></td>
502
  <td align="left"><br />
503
- <div style="align:left"><input name="wp_FMP_update" value="Save Changes" type="submit" />&nbsp;&nbsp;&nbsp;<input name="wp_FMP_reset" value="Reset defaults" type="submit" /></div>
504
  </td>
505
  </tr>
506
  <tr>
@@ -734,7 +756,7 @@ function FMPOptionsPage() {
734
  <th></th>
735
  <td></td>
736
  <td align="left"><br />
737
- <div style="align:left"><input name="wp_FMP_update" value="Save Changes" type="submit" />&nbsp;&nbsp;&nbsp;<input name="wp_FMP_reset" value="Reset defaults" type="submit" /></div><br />&nbsp;<br />
738
  </td>
739
  </tr>
740
  </table>
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: Generate video thumbnails, HTML5-compliant videos, and video embed shortcodes. Some functions require FFMPEG.
6
+ Version: 1.0.6
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
 
289
 
290
  function FMPOptionsPage() {
291
 
292
+ define("wp_FMP_swfobject_default", "true", true);
293
+ define("wp_FMP_flashplayer_default", "<strong>Please upgrade Flash Player</strong> This content is shown when the user does not have a correct Flash Player version installed.", true);
294
+ define("wp_FMP_default_width", "480", true);
295
+ define("wp_FMP_default_height", "360", true);
296
+ define("wp_FMP_default_HTML5", "true", true);
297
+ define("wp_FMP_default_controlbar_style", "docked", true);
298
+ define("wp_FMP_default_poster", "", true);
299
+ define("wp_FMP_default_autohide", "true", true);
300
+ define("wp_FMP_default_autoplay", "false", true);
301
+ define("wp_FMP_default_loop", "false", true);
302
+ define("wp_FMP_default_playbutton", "true", true);
303
+ define("wp_FMP_default_http_streaming", "false", true);
304
+ define("wp_FMP_default_stream_type", "liveOrRecorded", true);
305
+ define("wp_FMP_default_scale_mode", "letterbox", true);
306
+ define("wp_FMP_default_bgcolor", "", true);
307
+ define("wp_FMP_default_configuration", "", true);
308
+ define("wp_FMP_default_skin", "", true);
309
+ define("wp_FMP_default_ffmpeg", "/usr/local/bin", true);
310
+ define("wp_FMP_default_encodeogg", "false", true);
311
+ define("wp_FMP_default_encodewebm", "true", true);
312
+
313
  if (isset($_POST['wp_FMP_reset'])) {
314
+ update_option('wp_FMP_swfobject', wp_FMP_swfobject_default);
315
+ update_option('wp_FMP_HTML5', wp_FMP_default_HTML5);
316
+ update_option('wp_FMP_width', wp_FMP_default_width);
317
+ update_option('wp_FMP_height', wp_FMP_default_height);
318
+ update_option('wp_FMP_flashplayer', wp_FMP_flashplayer_default);
319
+ update_option('wp_FMP_controlbar_style', wp_FMP_default_controlbar_style);
320
+ update_option('wp_FMP_poster', wp_FMP_default_poster);
321
+ update_option('wp_FMP_autohide', wp_FMP_default_autohide);
322
+ update_option('wp_FMP_autoplay', wp_FMP_default_autoplay);
323
+ update_option('wp_FMP_loop', wp_FMP_default_loop);
324
+ update_option('wp_FMP_playbutton', wp_FMP_default_playbutton);
325
+ update_option('wp_FMP_http_streaming', wp_FMP_default_http_streaming);
326
+ update_option('wp_FMP_stream_type', wp_FMP_default_stream_type);
327
+ update_option('wp_FMP_scale_mode', wp_FMP_default_scale_mode);
328
+ update_option('wp_FMP_bgcolor', wp_FMP_default_bgcolor);
329
+ update_option('wp_FMP_configuration', wp_FMP_default_configuration);
330
+ update_option('wp_FMP_skin', wp_FMP_default_skin);
331
+ update_option('wp_FMP_ffmpeg', wp_FMP_default_ffmpeg);
332
+ update_option('wp_FMP_encodeogg', wp_FMP_default_encodeogg);
333
+ update_option('wp_FMP_encodewebm', wp_FMP_default_encodewebm);
334
 
335
+ echo "<div class='updated'><p><strong>Video Embed & Thumbnail Generator plugin reset to default settings</strong></p></div>";
336
  }
337
 
338
  if (isset($_POST['wp_FMP_update'])) {
522
  <th></th>
523
  <td></td>
524
  <td align="left"><br />
525
+ <div style="align:left"><input name="wp_FMP_update" value="Save Changes" type="submit" />&nbsp;&nbsp;&nbsp;<input name="wp_FMP_reset" value="Reset to defaults" type="submit" /></div>
526
  </td>
527
  </tr>
528
  <tr>
756
  <th></th>
757
  <td></td>
758
  <td align="left"><br />
759
+ <div style="align:left"><input name="wp_FMP_update" value="Save Changes" type="submit" />&nbsp;&nbsp;&nbsp;<input name="wp_FMP_reset" value="Reset to defaults" type="submit" /></div><br />&nbsp;<br />
760
  </td>
761
  </tr>
762
  </table>