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

LOG: ERROR: Failed to load jwpsrv in IE8


Hi,

We are getting the following error in IE8:

LOG: ERROR: Failed to load jwpsrv in IE8

Although this is not a fatal error, because the console object is not created until the console is opened in IE8, this use of console.log is breaking JS execution and preventing our video from playing.

What could be causing this error?

Thanks!
Tim

6 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link?

snavile

User  
0 rated :

We resolved the issue on our site by modifying jwplayer.js to check for console and console.log before writing to it. But we are still trying to figure out what is causing the error LOG: ERROR: Failed to load jwpsrv in IE8.

Ethan Feldman

JW Player Support Agent  
0 rated :

Glad you got it, but, well, if you can provide the example of the issue actually happening, we can debug.

nstanziani

User  
0 rated :

We solved this by adding the following to our jwplayer.js file at the end. IE 8 seems to be getting all hung up on the lack of a console log. (added the if/then in case we want to see the error)

var alertFallback = false;
if (typeof console === "undefined" || typeof console.log === "undefined") {
console = {};
if (alertFallback) {
console.log = function(msg) {
alert(msg+"x");
};
} else {
console.log = function() {};
}
}

Ethan Feldman

JW Player Support Agent  
0 rated :

Thanks for sharing.

cr

User  
0 rated :

I noticed the following code inside jwplayer.js:

m&&"ads"!=u&&delete m.enabled;

It looks like analytics.enabled is being deleted before jwplayer has a chance to check the value of it. Ethan is this right?

This question has received the maximum number of answers.