Location: PHPKode > scripts > MyVideoBlog LITE - Automatic Wordpress Video Blogs! > myvideoblog-lite-automatic-wordpress-video-blogs/myvideoblog/mvb_players.php
<?php
function player_youtube($vidcod,$pwsize,$phsize) {
$embedcode = '<object width="'.$pwsize.'" height="'.$phsize.'"><param name="movie" value="http://www.youtube.com/v/'.$vidcod.'?fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/'.$vidcod.'?fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$pwsize.'" height="'.$phsize.'"></embed></object>';
return $embedcode;
}
function player_youtube_jwp($vidcod,$pwsize,$phsize,$siteurl) {
$embedcode = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='".$pwsize."' height='".$phsize."' id='single1' name='single1'><param name='movie' value='".$siteurl."/player.swf'><param name='allowfullscreen' value='true'><param name='allowscriptaccess' value='always'><param name='wmode' value='transparent'><param name='flashvars' value='file=http://www.youtube.com/watch?v=".$vidcod."'><embed id='single2' name='single2' src='".$siteurl."/player.swf' width='".$pwsize."' height='".$phsize."' bgcolor='#000000' allowscriptaccess='always' allowfullscreen='true' flashvars='file=http://www.youtube.com/watch?v=".$vidcod."'/></object>";
return $embedcode;
}
?>
Return current item: MyVideoBlog LITE - Automatic Wordpress Video Blogs!