item->video)): ?>
item->videoType =='embedded'):
$string = $this->item->video;
//preg_match('#(?<=youtube\.com/v/)\w+#', $string, $matches);
if (preg_match('#(?<=youtube\.com/v/)\w+#', $string, $matches)) {
$videothumb = '';
$videoUrl = 'http://www.youtube.com/watch?v='.$matches[0];
$videoid = $matches[0];
}
// echo "vidid=" .$videoid;
if( (preg_match("/http:\\/\\/video\.google\.com\\/googleplayer\\.swf\\?docid=([^\"][a-zA-Z0-9-_]+)[&\"]/siU",$string,$matches))
|| (preg_match("/http:\\/\\/video\.google\.co.uk\\/googleplayer\\.swf\\?docid=([^\"][a-zA-Z0-9-_]+)[&\"]/siU",$string,$matches)) ){
$XML_SOURCE = 'http://video.google.co.uk/videofeed?docid='.$matches[1];
// var_dump($XML_SOURCE);
$match = array();
preg_match("/media:thumbnail url=\"([^\"]\S*)\"/siU",$XML_SOURCE,$match);
//echo $match[1][0];
// $xml = simplexml_load_string($XML_SOURCE);
//simplexml_import_dom
$result = array();
$xml = simplexml_load_file($XML_SOURCE);
$findimg = $xml->channel->item->description;
preg_match_all('/
]+>/i',$findimg, $result);
$videothumb = $result[0][0];
}
?>