For some reason Internet Explorer 8 and below does not run JWPlayer and I have referenced everything correctly. Why won’t video work on jwplayer?
It seems as if jwplayer isn’t even loading in IE8 or below.
Can you somebody help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
window.outerWidthis undefined in IE8, therefor your conditional evaluates to false and the JWPlayer code never runs.Really not that hard to have debugged yourself. A simple alert or console.log in the conditional shows it isn’t running, then you deduce it might be because the conditional itself is evaluating wrong, then a simple alert or console.log of window.outerWidth shows it is undefined.
Same problem with a potential solution: https://stackoverflow.com/a/5954761/1217408
Using
document.body.clientWidthas pointed out there, something like this should work:You should keep in mind that in IE this might include the scrollbar when calculating the available width. They are not exactly equivalent but if you’re careful or mindful of it then you shouldn’t have any problem.