<?php
/**
- Description of Zend_Service_ZendTube
- Youtube,Dailymotion,Metacafe,Vimeo Players
*
*/
class Zend_Service_ZendTube {
/*Youtube Video Player*/
function YouTubePlayer($left,$top,$width,$height,$url)
{
$urlvideo=NULL;
if(!empty($url))Unknown macro: { $this->_first=strpos($url,'='); $this->_last=strpos($url,'&'); $this->_createurl=null; if($last!=false)Unknown macro: { $this->_createurl=substr($url,$first+1,$last-($first+1)); }elseUnknown macro: { $this->_createurl=substr($url,$first+1,strlen($url)-($first+1)); }$src="http}return $urlvideo;
}
/*Metacafe Video Player*/
function MetaCafePlayer($left,$top,$width,$height,$url){
$urlvideo=null;
if(!empty($url))Unknown macro: { $newurl=strstr($url,"watch"); $first=strpos($newurl,"/"); $last=strrpos($newurl,"/"); $createurl=substr($newurl,$first+1,$last-($first+1)).".swf"; $src=htmlentities("http}
return $urlvideo;
}
/*DailyMotion Video Player*/
function DailyMotionPlayer($left,$top,$width,$height,$url){
$urlvideo=null;
if(!emtpy($url)){
$first=strrpos($url,'/');
$last=strpos($url,'#');
$final=null;
if($last!=false)
else
$src="http://www.dailymotion.com/swf/".$createurl;
$urlvideo="<object>".
"<embed style='margin-left:$left;margin-top:$top'"."src=$src type=application/x-shockwave-flash width=$width height=$height></embed>".
"</object>";
}
return $urlvideo;
}
/*Vimeo Video Player*/
function VimeoPlayer($left,$top,$width,$height,$url){
$urlvideo=null;
if(!empty($url))
return $urlvideo;
}
}
?>