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

Video Playing Back at Native Size in IE9 Windows 7, Not Scaling to Width and Height


I'm testing an upgrade to JW Player 6.9.4867 from version 6.3.3242 Premium, self hosted. I'm getting a similar issue as mentioned in this post:
http://support.jwplayer.com/customer/portal/questions/8081175--setsamplefrequency-error-on-iexplorer-9

In IE9 only, the 1280x720 video is playing at native size instead of scaling down to fit its 700x394 container. The video playback and load seems fine, and it works as expected in all other browsers/versions tested so far. I also get the same javascript error about 'setSampleFrequency' the original poster refers to, but I don't know if it's related to the sizing issue. I'm not getting the error in 6.3, and I've never had an issue with the size of the video. I'm embedding the video using the following code in the body of the page:

(video paths are correct, analytics tracking code removed)
<div id="videoplayer_01" class="videoplayer"></div>
<script type="text/javascript">
jwplayer("videoplayer_01").setup({
file: "' . $videourl .'",
image: "' . $videoposterurl . '",
width: 700,
height: 394,
autostart: true,
skin: "/assets/scripts/jwplayer/jwplayer-skins-premium/bekle.xml"
});
jwplayer("videoplayer_01").onComplete( function(event){
jQuery(".videoComplete").fadeIn(500);
});
window.onbeforeunload = stopPlayers;
function stopPlayers(){
jwplayer().stop();
}
</script>

Any help would be appreciated. Thanks.

14 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Where are you running this?

jherrieven

User  
0 rated :

This is a previously fixed issue that has been re-introduced in JW6.8.

I've raised this as a problem a couple of times but it's yet to be addressed.

drivard

User  
0 rated :

It's a private site on an Apache server. I'm not able to link to it, but I am running the production site (also private) with 6.3 and release site with 6.9 side by side on the same server. I'm testing them side by side with IE9 on a virtual Windows 7 machine.

I briefly tried using 100% width and 16:9 aspect ratio, but that didn't seem to help. A work around such as this would be acceptable.

Ethan Feldman

JW Player Support Agent  
0 rated :

Can I see an example? James, where did you raise this?

drivard

User  
0 rated :

Here's a side by side image of the two versions playing the same video. Sorry that's the best I can do, but you can see the only difference is the size of the video. The container div and page margins are both set at the same 700px width as the JW Player instance.

http://s1244.photobucket.com/user/dan_riv/media/jwplayer6-9size_zpsa9baff04.jpg.html

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, I see that. It has something to do with IE9 in html5 mode based on certain resolutions.

MisterNeutron

User  
0 rated :

Ethan, here's a simple stripped-down demo of the problem:

http://misterneutron.com/JW69IE9Error/

The video's native resolution is 1280x720 and the player dimensions are half that, 640x360. OK in all browsers except IE9, where it shows only part of the video in the player frame.

Ethan Feldman

JW Player Support Agent  
0 rated :

Thanks, logged a ticket.

video2

User  
0 rated :

We seem to be experiencing the same exact issue in IE9. Ethan, is there any chance you could provide us with an ETA on when this might be resolved?

Ethan Feldman

JW Player Support Agent  
0 rated :

I can’t provide an eta yet since this was just entered as a ticket. I would set primary to flash for now to work around this.

video2

User  
0 rated :

In agreements with our clients, our videos must be HTML5 compatible on other devices (mobile/tablet). What would be the best way to force Flash playback in IE9 only. Is there a preferred method to accomplish such a task?

Ethan Feldman

JW Player Support Agent  
0 rated :

It will fall back to html5 on mobile / tablet, even if primary is set to flash.

Here is a work around to only use Flash for IE9 though:

<!DOCTYPE html>
<script src="http://p.jwpcdn.com/6/9/jwplayer.js"></script>
<div id="my-video"></div>
<script type="text/javascript"> var thePrimary; if(document.all && !window.atob){ thePrimary = 'flash'; } else { thePrimary = 'html5' } jwplayer("my-video").setup({ file: "http://content.bitsontherun.com/videos/i8oQD9zd-kNspJqnJ.mp4", image: "http://content.bitsontherun.com/thumbs/i8oQD9zd-640.jpg", width: "580", height: "370", primary: thePrimary }); </script>

Code – https://gist.github.com/emaxsaun/1ae2015fb56ece4bd72e

drivard

User  
0 rated :

Thanks for the workaround. I haven't tried it yet. Do you anticipate a fix in the next version of JW Player?

Ethan Feldman

JW Player Support Agent  
-1 rated :

This particular ticket will not make it into 6.10.

This question has received the maximum number of answers.