Quote:
Originally Posted by Nam
Andrew, I found a minor size problem with the flash-based plug-in. The VEOH video player is bigger than YouTube player, is there anyway to specific the size of player for YouTube and VEOH?
I tried to increased the size in plug-manager to make it suit VEOH but then I increased the size of ALL Youtube files. Any guide to overcome this problem would be great!
|
I'm not sure why these sites are displaying at different sizes.
Anyway, as you discovered, by default all the flash players are set up to display at the size configured in *flash_sites_plugin.xml*, i.e. at 480x360.
You can change this on a per-player basis by editin the file includes/local_links_flashsites.php.
You'll find a series of declarations, such as the following for Veoh:
Code:
"Veoh" => array(
"pattern" => "#http://www.veoh.com/videos/([a-z0-9]*)#i",
"replace" => "$1",
"iconpattern" => "#www.veoh.com/videos#",
"icon" => "flv",
"recordhitnow" => 1,
"template" => '
<embed
src="http://www.veoh.com/videodetails.swf?permalinkId=$url&id=1&player=videodetails&videoAutoPlay=0"
width="$player_width"
height="$player_height"
bgcolor="#000000"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
',
),
Change statements like
Code:
width="$player_width"
height="$player_height"
replacing $player_height and $player_width as you wish.