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

Video resize unexpected


Hi,

I have some video streams that are either in 16:9 or 9:16 (portrait mode). With the 'stretching' option set to 'uniform', the player 'height' set to less than the original video and using the flash player, the result is as expected (can see the entire video, resized down, with black borders on the left and right).
However, using the JS player, the result is completely different. The video seems to be "zoomed in", stretched on both sides in order to remove the black borders.

1. Why is this behavior different from JS to Flash?
2. Is there anything I can do to avoid this?
3. Would it be possible to have another 'stretching' option called 'fit' that would resize the video until it fits either the width or height (not both at the same time)?

I'm experiencing this with JWPlayer 7.3.6 in Safari using this stream: https://cdn-stream-integration-1.tsu.co/bb2a0ddb-acb8-4afa-9f56-7f581d076cb6/manifest.m3u8

Thank you

4 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

Thank you for contacting the JW Player support team. My name is Randy thank you for the link. If you update the dimensions to reflect the portrait layout here:

#EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=362×640,CODECS=“avc1.42001e,mp4a.40.2”,BANDWIDTH=1499000,NAME=“362p”

Does it resolve the problem for you.

Randy

Raphael Daguenet

User  
0 rated :

Hi Randy,

by using these dimensions, it does not "zoomed in" anymore. However, that's not a correct fix. The resolution of the streams is different than the size of my player. I even have different player sizes on certain pages. The ratio is always kept though.

See the problem?

Thanks

Raphael Daguenet

User  
0 rated :

Actually, while making a demo available for you, I've found out that the issue was a CSS rule applied to the player <div>:

width: 100% !important; height: auto !important;

Without it, the video in JS isn't zoomed-in anymore and behave exactly like the flash player.

Thank you for your help.

Randy

JW Player Support Agent  
0 rated :

Hello Raphael,

My pleasure.

Kindly,
Randy

This question has received the maximum number of answers.