class Zend_Service_ZendTube {
/*Youtube Video Player*/
function YouTubePlayer($left,$top,$width,$height,$url)
{
$urlvideo=NULL;
$curl==NULL;
if(!empty($url)){
$first=strpos($url,'=');
$last=strpos($url,'&');
$final=null;
if($last!=false)
else
$src="http://www.youtube.com/v/".$curl;
$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;
}
/*Metacafe Video Player*/
function MetaCafePlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$create_url=null;
if(!empty($url))
return $urlvideo;
}
/*DailyMotion Video Player*/
function DailyMotionPlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$create_url=null;
if(!emtpy($url)){
$first=strrpos($url,'/');
$last=strpos($url,'#');
$final=null;
if($last!=false)
else
$src="http://www.dailymotion.com/swf/".$create_url;
$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;
$create_url=null;
if(!empty($url))
return $urlvideo;
}
}