Youtube Autoplay API Change?

I just found out, that the autoplay setting has no effect on youtube videos anymore. No matter if 0 or 1 is passed to the parameter, it keeps starting it. In the API reference i couldn't find anything but on internet some people using "0" instead of 0 and some using ?autoplay instead of &autoplay..... nothing worked for me. The only way to stop it to autoplay by default was to remove the parameter (&autoplay=#autoplay#) from the "defines" in /modules/boonex/videos/classes/BxVideosConfig.php

I can reproduce on demo.boonex.com

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 17 May 2013

Excellent!!!!

Was a big pain when a member posted a youtube to profile and I have the audio set to "auto-play."

 

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 17 May 2013

Its very iimportant for me, thanks for your help!

Works fine!
 

best regards
Deutsches Dolphin Forum 

http://handytariftipp.de/
Quote · 22 May 2013

Hello

Thanks for reporting. This issue will be fixed in the next Dolphin version.

If someone needs fix now, then one should do the following:

edit "modules/boonex/videos/classes/BxVideosConfig.php", replace "&autoplay=#autoplay#" with "#autoplay#" everywhere in this file, save and close it.

edit "modules/boonex/videos/classes/BxVideosTemplate.php", replace the following code:

$sPlayer = str_replace("#autoplay#", (getSettingValue("video", "autoPlay") == TRUE_VAL ? "1" : "0"), $sPlayer);

with this one:

$sPlayer = str_replace("#autoplay#", (getSettingValue("video", "autoPlay") == TRUE_VAL ? "&autoplay=1" : ""), $sPlayer);

 

As you can see youtube API hasn't changed regarding this option anyhow and I think it's some kind of embedded player bug that possibly will be fixed soon on their side.

Quote · 22 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.