Video Sidebar Widgets - Version 5.5

Version Description

Previous YouTube autoplay fix does not work for some users. Redo it according to loSan and qcdars's solution http://wordpress.org/support/topic/cant-turn-off-autoplay Fix YouTube autoplay in Random Video Widget. (missed this in previous version 5.4)

Download this release

Release Info

Developer denzel_chia
Plugin Icon 128x128 Video Sidebar Widgets
Version 5.5
Comparing to
See all releases

Code changes from version 5.4 to 5.5

class-randomvideosidebarwidget.php CHANGED
@@ -104,7 +104,9 @@ extract( $args );
104
  break;
105
 
106
  case 'YouTube':
107
- $rv_value = "http://www.youtube.com/v/$Embed_id&autoplay=$RV_autoplay&loop=0&rel=0";
 
 
108
  $rv_flashvar = "";
109
  $rv_flashvar2 = "";
110
  $rv_cap = $Embed_cap;
104
  break;
105
 
106
  case 'YouTube':
107
+ //Youtube changed API.
108
+ //Now needs to add a ? in embed url before the variables.
109
+ $rv_value = "http://www.youtube.com/v/$Embed_id?autoplay=$RV_autoplay&loop=0&rel=0";
110
  $rv_flashvar = "";
111
  $rv_flashvar2 = "";
112
  $rv_cap = $Embed_cap;
helper-functions.php CHANGED
@@ -33,9 +33,10 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
33
  break;
34
 
35
  case 'YouTube':
36
- //modified in version 5.4 to fix autoplay, does not know why youtube changed it's setting.
37
- if($autoplaysetting=='1'){$auto = "&autoplay=$v_autoplay2";}else{$auto="";}
38
- $value = "http://www.youtube.com/v/$v_id2$auto&loop=0&rel=0";
 
39
  $flashvar = "";
40
  $flashvar2 = "";
41
  break;
33
  break;
34
 
35
  case 'YouTube':
36
+ //Youtube changed API.
37
+ //previous modification in version 5.4 does not work for some user, hope this works for everyone.
38
+ //thanks to LoSan for the hint about the need to add ? in embed url. http://wordpress.org/support/topic/cant-turn-off-autoplay
39
+ $value = "http://www.youtube.com/v/$v_id2?autoplay=$v_autoplay2&loop=0&rel=0";
40
  $flashvar = "";
41
  $flashvar2 = "";
42
  break;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Author link: http://denzeldesigns.com
5
  Tags:video, widget, widgets, sidebar, videos, video sidebar widget, video widget, embed video, video embed, video in sidebar, youtube, vimeo, veoh, myspace video, revver, blip tv, tudou, youku, 6.cn, google videos, tangle
6
  Requires at least:2.8.1
7
  Tested up to: 3.5.1
8
- Stable tag:5.4
9
 
10
  == Description ==
11
 
@@ -15,6 +15,12 @@ Stable tag:5.4
15
  == Changelog ==
16
 
17
 
 
 
 
 
 
 
18
  = 5.4 =
19
 
20
  Fix autoplay of YouTube Videos. The videos started autoplay probably due to a change in YouTube API.
5
  Tags:video, widget, widgets, sidebar, videos, video sidebar widget, video widget, embed video, video embed, video in sidebar, youtube, vimeo, veoh, myspace video, revver, blip tv, tudou, youku, 6.cn, google videos, tangle
6
  Requires at least:2.8.1
7
  Tested up to: 3.5.1
8
+ Stable tag:5.5
9
 
10
  == Description ==
11
 
15
  == Changelog ==
16
 
17
 
18
+ = 5.5 =
19
+
20
+ Previous YouTube autoplay fix does not work for some users. Redo it according to loSan and qcdars's solution http://wordpress.org/support/topic/cant-turn-off-autoplay
21
+ Fix YouTube autoplay in Random Video Widget. (missed this in previous version 5.4)
22
+
23
+
24
  = 5.4 =
25
 
26
  Fix autoplay of YouTube Videos. The videos started autoplay probably due to a change in YouTube API.
video-sidebar-widgets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
5
- Version: 5.4
6
  Description: Video Sidebar Widgets to display videos such as Vimeo, YouTube, MySpace Videos etc. Now with added shortcode and quicktag to embed video in post and page content.
7
  Author: Denzel Chia
8
  Author URI: http://denzeldesigns.com/
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
5
+ Version: 5.5
6
  Description: Video Sidebar Widgets to display videos such as Vimeo, YouTube, MySpace Videos etc. Now with added shortcode and quicktag to embed video in post and page content.
7
  Author: Denzel Chia
8
  Author URI: http://denzeldesigns.com/