compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (13)

View Page History
*
* @category Zend
* @package Zend_Service_ZendTube Zend_Video
* @copyright Copyright (c) 2005-20112 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @author Angelos Staboulis
public function YouTubePlayer($left,$top,$width,$height,$url)
{
$urlvideo=null;
$createurl=null;
if(!empty($url)){
$first=strpos($url,'=');
$last=strpos($url,'&');
if($last!=false){
$createurl=substr($url,$first+1,$last-($first+1));
}
else
{
$createurl=substr($url,$first+1,strlen($url)-($first+1));
}
$src="http://www.youtube.com/v/".$createurl;
$style="'position:fixed;margin-left:$left"."px".";margin-top:$top"."px;"."margin-right:$width"."px;"."margin-bottom:$height"."px;"."'";
$urlvideo="<object>".
"<embed style=$style src=$src type=application/x-shockwave-flash></embed>".
"</object>";
}
return $urlvideo;
}
/**Metacafe Video Player**/
public function MetaCafePlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$createurl=null;
if(!empty($url)){
$newurl=strstr($url,"watch");
$first=strpos($newurl,"/");
$last=strrpos($newurl,"/");
$createurl=substr($newurl,$first+1,$last-($first+1)).".swf";
$src="http://www.metacafe.com/fplayer/".$createurl;
$style="'position:fixed;margin-left:$left"."px".";margin-top:$top"."px;"."margin-right:$width"."px;"."margin-bottom:$height"."px;"."'";
$urlvideo="<object>".
"<embed style=$style src=$src type=application/x-shockwave-flash></embed>".
"</object>";
}

return $urlvideo;
public function MetaCafePlayer($left,$top,$width,$height,$url)
{
}
/**DailyMotion Video Player**/
public function DailyMotionPlayer($left,$top,$width,$height,$url)
{
$urlvideo=null;
$createurl=null;
if(!emtpy($url)){
$first=strrpos($url,'/');
$last=strpos($url,'#');
if($last!=false){
$createurl=substr($url,$first+1,$last-($first+1));
}
else
{
$createurl=substr($url,$first+1,strlen($url)-($first+1));
}
$src="http://www.dailymotion.com/swf/".$createurl;
$style="'position:fixed;margin-left:$left"."px".";margin-top:$top"."px;"."margin-right:$width"."px;"."margin-bottom:$height"."px;"."'";
$urlvideo="<object>".
"<embed style=$style src=$src type=application/x-shockwave-flash></embed>".
"</object>";
}
return $urlvideo;
}

/**Vimeo Video Player**/

public function VimeoPlayer($left,$top,$width,$height,$url){
$urlvideo=null;
$createurl=null;
if(!empty($url)){
$last=strrpos($url,"/");
$createurl=substr($url,$last+1,strlen($url)-($last+1));
$src="http://vimeo.com/moogaloop.swf?clip_id=".$createurl;
$style="'position:fixed;margin-left:$left"."px".";margin-top:$top"."px;"."margin-right:$width"."px;"."margin-bottom:$height"."px;"."'";
$urlvideo="<object>".
"<embed style=$style src=$src type=application/x-shockwave-flash></embed>".
"</object>";
}
return $urlvideo;
{
}
}