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

Player sizing by height badly broken in JW 8


I'm trying to achieve a layout whereby the player width is 100%, but it is limited to a certain height. The video should then be uniformly resized so that it maintains its aspect ratio and is limited to the height of the player.

For the configuration: I'm using the "uniform" stretching configuration option, setting the width to 100% and the height to 600.

The problem: The .jw-aspect <div> has a padding-top value of 56.25%, which is 56% of the width of the player, and is thus much more than the 600 pixel height I want, so right away the player is not respecting the height I want.

Secondly, even if I force the elements to be the right size with CSS overrides, something (in the JW javascript) is manually setting the object-fill CSS property on the <video> element to "fill", which is overriding the correct "contain" value that would otherwise be applied by the .jw-stretch-uniform class.

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

For me to reproduce this issue reliably I will need the following information:

Browser name and version:
Operating System name and version:
Device make and model:
Provide step by step instructions on how to reproduce the issue on your page:
A test page replicating the issue as described in the document below:
https://support.jwplayer.com/customer/portal/articles/2186238-troubleshooting-%E2%80%94-creating-a-test-page

The test page must not contain any additional code or CSS, it must only contain the player and concrete steps to reproduce with expected and actual behavior.

This question has received the maximum number of answers.