![](https://secure.gravatar.com/avatar/06aacb2f1dbed200347db0a003fc6179?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
JW player iframe sizing
Hi,
I have been looking at creating an iframe embed code for our JW player, and I wanted to know the best way to resize the video to fit the frame that it is in. The idea of this being I have one iframe embed code, and I just change the iframe size to create players of different sizes.
Currently we have create separate pages for each player size, but I'm sure there must be a way to get the player to fit the browser window/iframe size automatically.
I have tried setting the width and height flashvars to 100%, but that in FF the page loads blank and in IE the player height fixed and only takes up about a fifth of the page instead of filling.
What is the best way of doing this?
The player doesn't need to resize dynamically with window resize, just fit the page/frame it is in when it loads.
Thanks in advance,
James