[pmwiki-users] YouTube embed code updated - parameters now available
adam overton
a at plus1plus1plus.org
Mon Sep 21 22:08:15 CDT 2009
sorry. one more
i just updated my update:
the youtube recipe now also has the ability to embed playlists - just
use the argument 'playlist=1' with the appropriate videocode...
adam
On 21 Sep 2009, at 5:54 PM, adam overton wrote:
>
> Hi. I've just released an updated version of Jon Haupt's swf-
> sites.php: swf-sites-2009-09-21.php. The only thing I changed was
> the YouTube code, which can now accept various parameters as
> defined by the YouTube api via the following format:
>
> (:youtube videocode param1=val1 param2=val2 ... :)
>
> For instance, if you'd like your video to loop:
>
> (:youtube nr-SZXIVvuo loop=1:)
>
> ... or if you'd like it to loop and enable the FullScreen button:
>
> (:youtube nr-SZXIVvuo loop=1 fs=1:)
>
> Width & Height are now accessible as well:
>
> (:youtube nr-SZXIVvuo width=425 height=344:)
>
> Use the YouTube api as a reference to figure out which other
> parameters you'd care to use.
>
> In addition, the following Variables are now available for use in
> config.php, before including the recipe:
>
> * $YouTubeDefaultParams - the default is 'fs=1
> hd=1' (FullScreen and HighDefinition enabled)
> * $YouTubeDefaultWidth - the default width is 425
> * $YouTubeDefaultHeight - the default height is 344;
>
>
> best,
> adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090921/fbc325f9/attachment.html
More information about the pmwiki-users
mailing list