How to Get JWPlayer Version 6 to run behind a firewall or completely offline

I am a fan of JWPlayer. The only downside to using it lately is it makes a call home before starting the script. This is bad for a few reasons.

  • If I want to use this on a website that is part of an intranet, it may not have a fully capable internet connection and/or is behind a firewall
  • If I want to use this offline (for local playback/development)
  • If you want it to load faster and only pull in resources from your server/network

Here’s the trick

1) load the jwplayer.js file

<script type=”text/javascript” src=”jwplayer.js”></script>

2) load your license file

<script type=”text/javascript”>jwplayer.key=”your-license-key-file-goes-here”;</script>

3) load the two CDN files the jwplayer.js file tries to fetch on startup

<script type=”text/javascript” src=”jwpsrv_frq.js”></script>
<script type=”text/javascript” src=”jwpsrv.js”></script>

3a) you can download (and save as) these files directly from JW’s CDN here:

jwpsrv_frq.js

jwpsrv.js

3b) or you can download them from my local mirror

jwpsrv_frq+jwpsrv.zip

4) Here’s what it looks like all together

<script type=”text/javascript” src=”jwplayer.js”></script>
<script type=”text/javascript”>jwplayer.key=”your-license-key-file-goes-here”;</script>
<script type=”text/javascript” src=”jwpsrv_frq.js”></script>
<script type=”text/javascript” src=”jwpsrv.js”></script>

Was this blog post helpful for you?

Support my blog and donate!

My blog is open to the public and will always be freely available. With your donation, we can help others learn, together.

  • Jay P

    Thank you for this solution. I tried it with JWPlayer 6.8 and it not only prevented it from loading these two JS files over the Internet, it also stopped it from making analytics calls! Note, however, that as of version 6.9 it does not request these files (so this solution may not work) and according to the JWPlayer support forum, an Enterprise license is required to disable the analytics calls.