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

video is played from a stream, the video is stretched across the width


hello,

I use the hls streaming to return the file that has a resolution of 654x720,
that is, the height is larger than width.



if I am requesting the file directly - it is played correctly

$(document).ready(function(){

jwplayer('video').setup({
image: "/local/templates/newgrand/images/homepage_preroll.jpg",
sources: [
{
file: 'https://content.knowhow.ru/videos/unsecured/54fffeb3867c5d154beed023_720.mp4'
}
],
repeat: true
});

});

http://joxi.ru/gkrDaqkIBJaZmp


but when the video is played from a stream, the video is stretched across the width

$(document).ready(function(){

jwplayer('video').setup({
image: "/local/templates/newgrand/images/homepage_preroll.jpg",
sources: [
{
file: 'https://content.knowhow.ru/videos/unsecured/smil:54fffeb3867c5d154beed023.smil/playlist.m3u8?token=3ccb06c6fff5f2574ccf469d69135ebe&fileId=54fffeb3867c5d154beed023'
}
],
repeat: true
});

});

not correctly
http://joxi.ru/el2ZzLYueEJy2J

how to make that video correctly was getting out of the stream?

7 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Not sure what this could be just by looking at the screenshot. Have you tried adding the width parameter to the setup?
http://support.jwplayer.com/customer/portal/articles/1413113-configuration-options-reference

Can you please provide a link so we can troubleshoot your issue?

Regards,
Cooper

rennext

User  
1 rated :

Yes, I tried setting width - not solved the problem

here is the link where the file is requested directly - works correctly
https://knowhow.ru/testV1.php

here is the link where the file is requested via hls stream - does not work properly
https://knowhow.ru/testV2.php

Cooper Reid

JW Player Support Agent  
0 rated :

Please use
{stretching: ’fill}. This should fix the issue
-Cooper

rennext

User  
1 rated :

trying your advice
http://joxi.ru/4vAWEleSa3ZBmW
https://knowhow.ru/testV2.php
but it is not working

Cooper Reid

JW Player Support Agent  
0 rated :

Did you try ‘exactfit’

admin

User  
1 rated :

trying your advice
http://take.ms/vfKrE
https://knowhow.ru/testV2.php
but it is not working

Cooper Reid

JW Player Support Agent  
0 rated :

I inspected the metadata associated with your HLS ts segments and I see the dimensions are 640×360. I think there is a problem with the HLS ts segment transcodes, because I can see the video is much taller than it is width.
Cooper

This question has received the maximum number of answers.