views:

31

answers:

1

Hi. I'm using the HTML5 JW Player. It sizes the HTML5 video correctly, but shrinks the Flash fallback player; here's an example page: Test Page

If you view that page in IE, you'll notice that on panel 5, the video is smaller than the space it's supposed to occupy. On Firefox, it works fine because it's using the OGG video in its HTML5 video player.

Is there a way to resize the Flash video via JavaScript/jQuery to fit the same space as the HTML5 video? Thanks.

+2  A: 

Maybe something like this?:

embed {
    width:100%;
    height:100%;
}
Mark
This did the trick: embed, object {height:233px !important}The video tag's height is 209 and this will override that for the embed and object tags.
Alex
Cool, glad you got it working.
Mark
Should I include "object" in the CSS rule?
Alex
Yes, if that's what's used by the player. Anyway even if it's not used there's no harm in including it, so just include it.
Mark