
Jwplayer6 Resizing breaks Stretching type in Mac Safari
Hello,
In our project, we have a page which allows the user to toggle between two different sizes for the video player. Using the "Resize" JS method, we change the video's size to two different sizes: 945x542 and 640x360.
This works fine in most browsers. However, specifically in Mac OS Safari, the "stretching" property of the video breaks once it's resized. The initial stretching type is "uniform", but after resizing it changes to what seem to be "fill".
Here's a visual example: http://i.imgur.com/LTtkcXZ.png
After the resizing, the stretching never fixes itself even if the video is resized back to its original size.
Is this a known Jwplayer 6 bug? Is there any workaround to make it work properly?
This is how I set up the player (the urls are omitted):
jwplayer("myVideoPlayer").setup({
file: [some path],
image: [some path],
skin: "bekle",
sharing: {link: [some path]},
logo: { file: [some path],
link: null,
hide: true,
margin: 0},
aboutlink: [some path],
width: 945,
height: 542,
stretching: "uniform"
});
These are the lines used to resize the player:
jwplayer("myVideoPlayer").resize(640, 360);
jwplayer("myVideoPlayer").resize(945, 542);