Fixed vimeo embed parsing algorithm 1_1_2
authorAlan J. Pippin <ajp@server.pippins.net>
Wed, 24 Sep 2008 05:17:02 +0000 (23:17 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Wed, 24 Sep 2008 05:17:02 +0000 (23:17 -0600)
ItemAddEmbedVideo.inc
templates/ItemAddEmbedVideo.tpl

index d598ee2c1d09dd501eff2dd03430aa8a0eaa4f07..4e16f42b64a17da624bdd5cc76ed2447a935a551 100644 (file)
@@ -798,18 +798,19 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
               }
 
               /* Format the description to hold a reference to the embedded video */
-              $description = '<object type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'"';
-              $description.= 'data="http://www.vimeo.com/moogaloop.swf?clip_id='.$video_id;
-              $description.= '&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1'.$autoStartStr;
-              $description.= '&amp;show_byline=1&amp;show_portrait=0&amp;color=">';
-              $description.= '<param name="quality" value="best" />';
+              $description = '<object width="'.$width.'" height="'.$height.'">';
               $description.= '<param name="allowfullscreen" value="true" />';
-              $description.= '<param name="scale" value="showAll" />';
-              $description.= '<param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id='.$video_id;
-              $description.= '&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1'.$autoStartStr;
-              $description.= '&amp;show_byline=1&amp;show_portrait=0&amp;color=" />';
-              $description.= '</object>';
-              
+              $description.= '<param name="allowscriptaccess" value="always" />';
+              $description.= '<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id='.$video_id;
+              $description.= '&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;'.$autoStartStr;
+              $description.= 'show_portrait=0&amp;color=&amp;fullscreen=1"/ >';
+              $description.= '<embed src="http://vimeo.com/moogaloop.swf?clip_id='.$video_id;
+              $description.= '&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;'.$autoStartStr;
+              $description.= 'show_portrait=0&amp;color=&amp;fullscreen=1"';
+              $description.= 'type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always"';
+              $description.= 'width="'.$width.'" height="'.$height.'">';
+              $description.= '</embed></object>';
+                              
           /*
            **********************************
            * Embed a remote .swf file
index 43d0e735b860a27026fc9bac766f3b9b3faad246..1ea280732b4bd3568f1a6c009158bd6d67a756a9 100644 (file)
@@ -31,6 +31,7 @@
     <b>Stickam:</b> http://www.stickham.com/editMediaComment.do?method=load&mId=xxxxxxxxx<br>
     <b>Myspace1:</b> http://vids.myspace.com/index.cfm?fuseaction=vids.individual&VideoID=xxxxxxxx<br>
     <b>Myspace2:</b> http://myspacetv.com/index.cfm?fuseaction=vids.individual&videoid=xxxxxxxx<br>
+    <b>Vimeo:</b> http://www.vimeo.com/xxxxxx<br>
     <b>Generic:</b> Any webpage with an '&lt;object ... &lt;embed ...' style video on its page<br>
     <br>
     <b><u>Supported File Types:</u></b><br>