
JWPlayer 6 loading jwpsrv.js even when analytics is disabled
Hi,
I disabled analytics with
bc.. analytics: {
enabled: false,
cookies: false
}
though the player is loading external javascript file "jwpsrv.js".
Hi,
I disabled analytics with
bc.. analytics: {
enabled: false,
cookies: false
}
though the player is loading external javascript file "jwpsrv.js".
I am using the premium version of JWPlayer.
I'm having the same problem, analytics disabled and player loading jwpsrv.js... :(
I'm having the same problem, analytics disabled and player loading jwpsrv.js... :(
I'm using the pro version offline (it will run in a cd-rom) and this problem causes a flash error.
Please, could you help us?
There is an open ticket for this issue:
http://developer.longtailvideo.com/trac/ticket/1815
Yes indeed, we’re tracking this issue in #1815…
Hi, regarding 1815 bug (Video player loading analytics even when disabled, causing crashes on offline sites like said by the original poster, for example on a cdrom release of his project).
The issue can be fixed by downloading a copy of the jwpsrv.js script.
b) Placing it in the jwplayer folder. Edit it with notepad.
c) Search for the string "jwpsrv.js"
d) Then near of it you should see:
function(c) ...
Replace it with the following code, (check how and where it ends) should not fail. If needed, "localhost" can be changed to whatever URL or URI is needed:
CODE:
(function(c) {var b=c.embed,a=c.utils,d=a.extend(function(i){var g=i.config,e=g.plugins,f=g.analytics,h=(a.isHTTPS()?"http:":"http://")+"localhost/jwplayer/jwpsrv.js";
END CODE
That's it. How It served well as help.
Is it legal to use the above solution?
When is version 6.2 is released?
We wouldn’t recommend a “hack” like this, but at the same time it fixes the issue for 6.1.
6.2 will get released in 2 weeks, around Feb 7…
I have the version of 6.2 now and the jwplayer still trying to download jwpsrv.js even if my options contains disabling analytics.
Like this:
bc.. analytics: {
enabled: false,
cookies: false
}
What should I do?
I don’t see this in my testing setup. Do you have a link where this happens? Have you updated all assets and have you clreaded your browser cache in order to ensure you’re not accidentally loading a 6.1 player from your browser cache?
Unfortunately, I can't provide you a live site because it is accessibly only via VPN.
I've observed with IE webdeveloper tools, and the jwplayer.min.js contains this:
bc.. "undefined"==typeof jwplayer&&(jwplayer=function(f){if(jwplayer.api)return jwplayer.api.selectPlayer(f)},jwplayer.version="6.2.3115",
The URL, what the browser try to get:
http://p.jwpcdn.com/6/2/jwpsrv.js
bc.. jwplayer('mediaspace').setup({
'file': '/~/media/Training/Videos/Cegunk-modositas-1.mp4','backcolor': '4E575F',
'frontcolor': 'FFFFFF',
'lightcolor': 'FFFFFF',
'screencolor': '000000',
'controlbar': 'bottom',
'width': '520',
'autostart': 'true',
'primary': 'flash',
analytics: {
enabled: false,
cookies: false
}});
I think, I can't see my mistace in my code. :(
I'm using a free version of JWPlayer.
I read that, analytics enabled option is disabled for free users.
http://www.longtailvideo.com/support/jw-player/28852/using-jw-player-analytics
...in the bottom of the page.
Correct, you can’t disable it in the free edition.