Since Firefox 3 came out I found an error in video size with the asset bonus module.
As an example you can see it at http://www.amnesty.org/en/news-and-updates/video-and-audio/close-guantan.... (I already fixed my issues)
It seems the flash player isn't respecting the object size. A fix for this is to pass the size in as flashvars and the player will adjust to the size passed in. To do this the $options array (passed to the theme calls for the swfobject player) needs to have something that looks like:
$options['vars'] = array(
'height' => '123',
'width' => '456',
);
Notice no px on the size. If px is there is won't work. I'll try to roll a patch later this week.
Comments
Comment #1
wmostrey commentedHey Matt,
I'm in the process of tackling this but I'm unsure what to change. I'm passing the width and height to the flvplayer already, right?
var oSwf = new SWFObject("myfile","swfobject-object-782","320","240","0","#FFFFFF");What should be added?
Comment #2
mfer commentedFirst, I'd love to throw a patch together but I don't have a setup to do so where I'm at so I'll try to explain in detail. If you can wait I'll write up a patch over the weekend.
There are two sizing components to displaying the flash video player and they are the size listed in the object tag and the size passed to the JW flv flash player.
In the line
var oSwf = new SWFObject("myfile","swfobject-object-782","320","240","0","#FFFFFF");the 320 width and 240 height are only passed into the object tag for sizing. In firefox 3 that means the object tag will render at the right size but the flash video player won't. The solution I found was to additionally pass the size into the flv flash video player so it would know what size to render at (there is documentation for this).To do this we can add a height and width to the variables to the object. Here is an example of how we can change it (in theme_asset_bonus_swfobject()):
...
...
This code is untested but the concept is solid.
Comment #3
wmostrey commentedWorks as expected and it doesn't interfere with FF2 or other browsers. http://drupal.org/cvs?commit=132928
Thanks so much Matt, your contributions are highly appreciated, and also a late congratulation on launching The Fishbowl!
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.