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

ReferenceErrorL jwplayer is not defined


We are hosting videos embedding videos in Wordpress using JW Player 7.2 and I have had a few users report issues viewing the videos on Windows 7 in both IE11 and Firefox

All they see is the "Loading the player...." and in the console they see ReferenceError: jwplayer is not defined

Here is our embed code:

<div id="visualSPPlayer">Loading the player...</div>
<script type="text/javascript">
var playerInstance = jwplayer("visualSPPlayer");
playerInstance.setup({
playlist: [{
image: "http://sharepoint-videos.s3.amazonaws.com/screencasts/2188/poster.PNG",
sources: [ {
file: "http://sharepoint-videos.s3.amazonaws.com/screencasts/2188.mp4"
}],
tracks: [{
file: "http://sharepoint-videos.s3.amazonaws.com/screencasts/2188/thumbnails.vtt",
kind: "thumbnails"
}]
}],
primary: "html5",
width: "100%",
aspectratio: "16:9",
autostart: true,
skin: {
name: "vapor",
active: "#E16933",
inactive: "#E16933",
background: "#333333"
}
});
</script>

Here is the video page: http://dev.sharepoint-videos.com/player-test/

It tests fine for us in Windows 7 on all browsers but I don't know why the player wouldn't load for them. They are based outside the US are there other factors that could affect the Javascript in their browser? They are connecting via a company network in their office and not on their personal computers from home if that helps.

7 Community Answers

Donni

JW Player Support Agent  
0 rated :

Is the jwplayer.js being referenced in the theme’s head? That error indicates that it does not actually see a jwplayer.js to play.

jeremy

User  
0 rated :

It was not being referenced in the themes head because for some reason JW Player was hijacking other video players (we have a mix of players on our site as we upgrade videos) when the jwplayer.js was being called in the WP themes head without further restriction.

With that said, in this case it did not make a difference as I set up the following WP post after moving the jwplayer.js and license.js scripts to the head and the player still did not load for this user and the jwplayer is undefined persists for them

http://dev.sharepoint-videos.com/player-test/

I had him download Google Chrome and the error persisted.

He is located in Canada but I can't find any other explanation for why it works fine in all of the above browsers on Windows 7 for me and it works for none of them for him.

jeremy

User  
0 rated :

Here is a JW Platform hosted video that I sent the user and he wasn't even able to get this video to load:

http://dev.sharepoint-videos.com/cloud-player-test/

These scripts aren't even loaded in Wordpress

For this video he received a console error of :

Failed to load resource net: ERR_CONNECTION_RESET and it was referencing the content.jwplatform.com/players/

Donni

JW Player Support Agent  
0 rated :

JW Player was set as a false positive in an anti-virus program and on a firewall system yesterday which has since been resolved. Can you check with your users if the issue still persists?

jeremy

User  
0 rated :

Following up with them. Would this affect all Anti-virus programs equally or just the one that it was identified in?

Donni

JW Player Support Agent  
0 rated :

Anyone maintained by ESET.

wmeier

User  
0 rated :

@Donni

I have been using ESET for years and it is the better of AV programs out there.

Willie

This question has received the maximum number of answers.