
Support responsive design / dynamic sizing
As per this discussion: http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/30821/responsive-player-dimensions
Support for responsive design setups and dynamic sizing that does not break various portions of the player (e.g. Captions and fullscreen) would be nice. The linked thread has a basic solution in it.
The basic solution is to allow for width and height to be specified as percentages in the setup code, as right now it is ASSUMED that these will always be integers. Allowing for the percentage based values would only require a few lines in the model initialization code.
The alternative would be to provide a "responsive" or "dynamicSizing" setup tag that would handle the following:
<ol>
<li>Wrapping the player in a container with the padding hacks for aspect ratio (See linked topic, would likely also need to specify ratio in this case)</li>
<li>Set the height and width of the player to fill container</li>
<li>Possibly attaching an event to window.resize to handle calling resize() on the player when the page changes size.</li>
</ol>
The final option is to actually make the player truly responsive, but that would require a good deal of messing about in lots of places to make getting player dimensions dynamic, but would probably be a better long term option...
I am submitting this as there is no ticket in the system related to this request.