Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Percent width, auto height? Like <video>?

Hi ...

I've been doing experiments with JW Player to automatically height itself when given a percent width. I've discovered the <video> tag can do this with the latest browsers IE, FF, and Safari. I don't know how <video> pulls this off, but it's a great capability.

You can see what I'm trying to do at Resize the browser window. This is the code I'm using here:

bc.. <video controls="controls" style="width:99%;" poster="caboose.jpg">
<source src="caboose.mp4" type="video/mp4" />
<source src="caboose.webm" type="video/webm" />

I'd like to use JW Player because of it's UI and great cross browser support. I'll purchase it. Minimally I'd like to know if I can achieve the above affect rather easily and how I could do this. I'd be happy to have the above effect with only current browsers as I do now -- and falling back to a fixed size for older installations is fine.

Thanks in advance!

2 Community Answers

JW Player

0 rated :

I'm sorry, I just noticed Roger posted a related question only hours ago and has posted related links on the matter. I'll study those solutions. I did not know the term "responsive video" and thus my searches failed.


Ethan Feldman

JW Player Support Agent  
0 rated :

You might be able to use this plugin in order to do something like this –

This question has received the maximum number of answers.