JWPlayer, Internet Explorer & Jquery Bug fix June 22nd, 2011

Hi all.

So I just wanted to post this fix for all of those people out there that are using JWPlayer and jQuery to hide and show videos on Internet Explorer.

In order to pause the video the video when the video is out of view, or hidden, you need to specify the following:

//the true parameter is KEY for IE
jwplayer('playerID').pause(true);

Another problem you may notice with JWPlayer, and maybe other flash embedding methods, is that when you show the video again, the video is black. The audio will still play, but the actual video is just black. In order to fix this, you need to set the flashvar stretching to ‘exactfit’. Example below:


jwplayer('playerContainer').setup({

flashplayer: 'player.swf',

file: 'file/directory/file.mp4',

height: '405',

width: '720',

stretching: 'exactfit'

});

blog comments powered by Disqus