<?php
class Zend_Service_ZendTube {
/**
-
- Youtube Video Player
**/
function YouTubePlayer($left,$top,$width,$height,$url)Unknown macro: { $urlvideo=NULL; $newurl=NULL; if(!empty($url))Unknown macro: { $first=strpos($url,'='); $last=strpos($url,'&'); if($last!=false) $newurl=substr($url,$first+1,$last-($first+1)); else $newurl=substr($url,$first+1,strlen($url)-($first+1)); $src="http}return $urlvideo; }/*Metacafe Video Player*/
function MetaCafePlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$newurl=null;
if(!empty($url))Unknown macro: { $newurl=strstr($url,"watch"); $first=strpos($newurl,"/"); $last=strrpos($newurl,"/"); $newurl=substr($newurl,$first+1,$last-($first+1)).".swf"; $src="http}
- Youtube Video Player
return $urlvideo;
}
/*DailyMotion Video Player*/
function DailyMotionPlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$newurl=null;
if(!emtpy($url)){
$first=strrpos($url,'/');
$last=strpos($url,'#');
if($last!=false)
else
$src="http://www.dailymotion.com/swf/".$newurl;
$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;
$newurl=null;
if(!empty($url))
return $urlvideo;
}
}
?>