X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=ItemAddEmbedVideo.inc;h=eb15456ed6b424d1af018305f614d35a0195962e;hb=915fde0fe9be5bb5bd7faa06836d494b3b09a03a;hp=457ad724a52fd6ae6920873c550f05d11c5f7b0c;hpb=6adbc488a2f3fb1001f4dd8497f047fb31e911b4;p=embedvideo%2F.git diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index 457ad72..eb15456 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -75,9 +75,10 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $googlePlayer="http://video.google.com/googleplayer.swf"; /* Gallery2 specific paths and variables */ - $gallery2_url = "http://www.pippins.net/gallery2"; - $gallery2_flv_thumbnail = "/modules/thumbnail/images/G2video.jpg"; - $gallery2_flv_player = "/modules/flashvideo/lib/G2flv.swf"; + $urlGenerator =& $gallery->getUrlGenerator(); + $gallery2_url = $urlGenerator->getCurrentUrlDir(); + $gallery2_flv_thumbnail = "modules/thumbnail/images/G2video.jpg"; + $gallery2_flv_player = "modules/flashvideo/lib/G2flv.swf"; /* Store the passed URL in a shorter local variable */ $url = $form['webPage']['URL']; @@ -109,7 +110,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $feed.= "&dev_id=$dev_id&video_id=$video_id"; /* Get the youtube xml feed as a string data source */ - $xml = _getFeed($feed); + $xml = $this->_getFeed($feed); if($debugOutput) { print "$xml"; @@ -161,7 +162,8 @@ class ItemAddEmbedVideo extends ItemAddPlugin { } /* Grab the contents of the webpage used to display the video on video.google.com */ - $contents=file_get_contents($url); + //$contents=file_get_contents($url); + $contents = $this->_getFeed($url); /* Extract the summary from the webpage contents */ preg_match('//i', @@ -183,7 +185,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $description = ' '; + $description.= 'src="'.$googlePlayer.'?docId='.$doc_id.'"> '; $description.= ''; $description.= "
$summary";