
Hiding JW Player license key
When JW Player is embedded as described in the docs, the license key is exposed to everyone accessing the player page by looking at the html source code. Is there a way to prevent this from happening? Thanks!
When JW Player is embedded as described in the docs, the license key is exposed to everyone accessing the player page by looking at the html source code. Is there a way to prevent this from happening? Thanks!
You can put it into an external JS file and then obfuscate it using a tool, that might help.
Actually the answer should be 'no, that is not possible'. Because the player is just client-side javascript running in the browser. If someone is interested in your key they can always extract it. There is no need to view the html source, just open the javascript console of your browser and enter: jwplayer.key
Yes, it isn’t possible to totally hide it, since it is set client side. What I mentioned above will just deter less technically savvy folks.
Hi! What do you think about putting the license key inside jwplayer.js? Not at the top but just at the end of the file... it's possible?
This would help me avoiding to edit 200 php files since I put the call of jwplayer also where I don't need... thanks...
at the end of jwplayer.js this code:
jwplayer.key="myprivatelicensekey";
Yes, that is totally possible to do.