Jw player size not suitable for video resolution

I have a problem with jw player. I set the height of the player = 225 width = 400. This is an exact ratio of 16: 9. If I play any video with a resolution of 400x225 or an exact video with an aspect ratio of 16: 9. I get vertical stripes on both sides of the player about 5 mm each. For reference, see below. how to overcome this problem. Thanks in advance.alt text

+3
source share
6 answers

add this stretch: "exactfit" to your java script code,

I had the same problem, and after adding the above line now it is ok.

<script type='text/javascript'>
jwplayer('mediaspace').setup({
'flashplayer': '/path to player.swf',
'file': '/path to video.mp4',
'controlbar': 'bottom',
 stretching:"exactfit",
'width': '600',
'height': '370',
'skin': '.../path to modieus.zip',
'image': '../path to image screenshot'
 });
</script>
+8
source

"20px" , (, , ,...) 225px,

245px

+4

, , . jw, . , 4: 3 , . , , , , - . , , , , .

+2

. JW Player true. .

+1

. ... , JW Embedder. - modieus, - 16: 9. - 600 . 16: 9 , 338 , , , , , , . . 32px, , jwplayer, 370px.

    <script type='text/javascript'>
    jwplayer('mediaspace').setup({
    'flashplayer': '/path to player.swf',
    'file': '/path to video.mp4',
    'controlbar': 'bottom',
    'width': '600',
    'height': '370',
    'skin': '.../path to modieus.zip',
    'image': '../path to image screenshot'
     });
    </script>
0
  •                                      
  • 480p 6)
  • Rec. 601 4: 3/16: 9
  • Rec. 601 plus a quarter 800 × 480 4: 3/16: 9
  • Widescreen 852 × 480 16: 9 (unscaled)

<script type="text/javascript">
    $(document).ready(function () {
        jwplayer("PlayMP4Video").setup({
            file: "video/kuru_fasulye_reklami.MP4",
            flashplayer: "jwplayer/player.swf",
            width:"800",
            height:"480",
            image: "image/background.jpg"
        });
    });
</script>
0
source

Source: https://habr.com/ru/post/1765615/


All Articles