====== Embed ""GoogleVideo"" ====== This is a simple plugin that enables you to embed a [[http://video.google.com | GoogleVideo]] video into a wiki page. ===== Usage ===== When you view a video at ""GoogleVideo"" there is a small box to the right of the video titled 'About this video'. There is a text box labeled **URL** that contains the URL you can use to share the video with others. NOTE: this plugin uses this URL as it's input - not the URL included in the object/embed tag. %% {{googlevideo url="http://video.google.com/videoplay?docid=XXXXXXXXXXXXXXXXXXX" [width="425" height="350" bgcolor="#ffffff"]}} %% - 'url' is required (see note above) - 'width' is optional. Defaults to 425 (the standard ""GoogleVideo"" dimensions) - 'height' is optional. Defaults to 350 (the standard ""GoogleVideo"" dimensions) - 'bgcolor' is optional. Defaults to white (#ffffff) ===== Install ===== Add googlevideo.php to the actions folder of your Wikka install. ===== Code ===== %%(php;1;googlevideo.php) You must provide the GoogleVideo url, including 'http://'."; return; } else { if (!$width) $width = 425; if (!$height) $height = 350; if (!$bgcolor) $bgcolor = "#ffffff"; } // http://video.google.com/videoplay?docid=XXXXXXXXXXXXXXXXXXX - if URL in this format, need to change to /googleplayer.swf\?docId=XXXXXXXXXXXXXXXXXXX $ptn = "/videoplay\?docid=([A-Za-z0-9_\-]{19})$/"; print ' '; ?> %% ===== Created By ===== GoogleVideo plugin created by Mariano Pardo (marian2js); [[https://mpcapital.ai/ | https://mpcapital.ai/]] CategoryUserContributions