Fix My Computer, Mark! - Knowledge Base - How To Remove the JWPlayer Logo, Links, and Change Right-Click About JW Player 

Knowledge Base - How To Remove the JWPlayer Logo, Links, and Change Right-Click About JW Player

=======================================

Download, and install: Free Flash Decompiler:
https://www.free-decompiler.com/flash/download/
Select: Installer (Windows) Version: 10.0.0

Download Link:
https://www.free-decompiler.com/flash/download/ffdec_10.0.0_setup.exe

Get the Latest Release:
https://github.com/jindrapetrik/jpexs-decompiler/releases/latest

========================================

Download, and install: Notepad++ (free)
Here is the link:
https://notepad-plus-plus.org

========================================

We are going to be using JW Allvideos Joomla's Plugin File:
plg_jw_allvideos-v4.7.0_j1.5-3.x.zip

These two files below are in this folder:
public_html/plugins/content/jw_allvideos/jw_allvideos/includes/js/jwplayer

We will be editing these two files:
jwplayer.html5.js (this plays a different type of video format from the file below)
jwplayer.flash.swf (this plays a different type of video format from the file above)

========================================

Before we edit any files, we need to back them up.
Put them in a zip file for save keeping!

========================================

jwplayer.html5.js

To Remove the JWPlayer Logo:

Open: jwplayer.html5.js (with Notepad++)
Toggle Word-Wrap
The reason we are using a Notepad like Notepad++ is because it is easier to read this format.

Search for: a=d.logo
You will see something like this below:
(function(d){var l=jwplayer.utils.extend,a=d.logo;a.defaults.prefix="";a.defaults.file="data:image/png;base64,

Select and delete the code between the quotes (" "):
Starting from:
a.defaults.file="data:image/png;base64,iVBORw0KGgoAAAAN

Ending at:
UO8H/BB7RwuB6W7b7AAAAAElFTkSuQmCC";d.logo=

Should look like this:
(function(d){var l=jwplayer.utils.extend,a=d.logo;a.defaults.prefix="";a.defaults.file="";d.logo=

Done. Save and replace with file on server.

==========================================

To Remove the About Links:

Open: jwplayer.html5.js (with Notepad++)
Toggle Word-Wrap

Search for: longtailvideo

1) Change this:

f.aboutlink="http://www.longtailvideo.com/jwpabout/?a\x3dr\x26v\x3d"+d.version+"\x26m\x3dh\x26e\x3df",delete f.abouttext

To This:

f.aboutlink="",delete f.abouttext

Or You Can Add Your Link:

f.aboutlink="http://www.YourDomain.com/",delete f.abouttext

2) Change this:

else{if(!f.aboutlink){var e="http://www.longtailvideo.com/jwpabout/?a\x3dr\x26v\x3d"+d.version+"\x26m\x3dh\x26e\x3d",h=c.edition();

To This:

else{if(!f.aboutlink){var e="",h=c.edition();

Or You Can Add Your Link:

else{if(!f.aboutlink){var e="http://www.YourDomain.com",h=c.edition();

3) Change this:

if("o"===v||"f"===v)q.link="http://www.longtailvideo.com/jwpabout/?a\x3dl\x26v\x3d"+d.version+"\x26m\x3dh\x26e\x3d"+v;g=l.extend({},q,h)

To This:

if("o"===v||"f"===v)q.link="";g=l.extend({},q,h)

Or You Can Add Your Link:

if("o"===v||"f"===v)q.link="http://www.YourDomain.com/";g=l.extend({},q,h)

4) Change this:

extend({aboutlink:"http://www.longtailvideo.com/jwpabout/?a\x3dr\x26v\x3d"+d.version+"\x26m\x3dh\x26e\x3do",

To This:

extend({aboutlink:"",

Or You Can Add Your Link:

extend({aboutlink:"http://www.YourDomain.com/",

Done! Save and replace with the file on server.

==========================================

To ReName, Right-Click: "About JW Player":

Open: jwplayer.html5.js (with Notepad++)
Toggle Word-Wrap

 Search for: About JW Player

1) Change this:

abouttext:"About JW Player "+d.version+"..."},h),k=!1,q,s

To This:

abouttext:"About Your Name"+"..."},h),k=!1,q,s

2) Change this:

f.abouttext="About JW Player "+d.version+" ("+e+" edition)")}l

To This:

f.abouttext="About Your Name")}l

Done. Save and replace with file on server.

==========================================

==========================================

jwplayer.flash.swf

To Remove the JWPlayer Logo, and Logo Link:

Open: jwplayer.flash.swf (with Free Flash Decompiler)

Select: LogoComponentLicensed

Here's how to get there:

scripts -> com -> longtailvideo -> jwplayer -> view -> components -> LogoComponentLicensed

Scroll to the bottom until you find this:
Line 89

private function get _free() : Boolean
{
return _player.edition == LicenseKey.FREE;
}

First Select: Edit ActionScript button, and click Okay

Change This:

private function get _free() : Boolean
{
return _player.edition == LicenseKey.FREE;
}

To This:

private function get _free() : Boolean
{
return _player.edition == LicenseKey.PRO;
}

Select: Save, wait, and Select: Okay.

Now Save the file, Upload it, and Replace the one on your server.

Don't Forget To Clear Out Your Browser's Cache Images and Files: If Nothing Changes!

===========================================

To ReName, Right-Click: "About JW Player ...":

Open: jwplayer.flash.swf (with Free Flash Decompiler)

1) Select: RightclickMenu

Here's how to get there:

scripts -> com -> longtailvideo -> jwplayer -> view -> RightclickMenu

 

1) Search for this:
Line: 57

protected function setAboutText() : void
{
this.about = new ContextMenuItem("About JW Player " + this._player.version + "...");
}

First Select: Edit ActionScript button, and click Okay

1) Change this:

protected function setAboutText() : void
{

   this.about = new ContextMenuItem("About JW Player " + this._player.version + "...");
}

To This:

protected function setAboutText() : void
{

   this.about = new ContextMenuItem("About Your Name" + "...");
}

 

2) Search for this:
Line: 62

protected function aboutHandler(param1:ContextMenuEvent) : void
{
navigateToURL(new URLRequest("http://www.longtailvideo.com/jwpabout/?a=r&v=" + PlayerVersion.version + "&m=f&e=o"),"_top");
}

2) Change this:

protected function aboutHandler(param1:ContextMenuEvent) : void
{
   navigateToURL(new URLRequest("http://www.longtailvideo.com/jwpabout/?a=r&v=" + PlayerVersion.version + "&m=f&e=o"),"_top");
}

To This:

protected function aboutHandler(param1:ContextMenuEvent) : void
{
   navigateToURL(new URLRequest("http://www.YourDomain.com/"),"_top");
}

Select: Save, wait, and Select: Okay.

 

2) Select: RightClickMenuLicensed

Here's how to get there:

scripts -> com -> longtailvideo -> jwplayer -> view -> RightClickMenuLicensed

 

3) Search for this:

Line: 35

about = new ContextMenuItem("About JW Player " + _loc2_ + "...");

3) Change this:

about = new ContextMenuItem("About JW Player " + _loc2_ + "...");

To This:

about = new ContextMenuItem("About Your Name" + "...");

 

4) Search for this:

Line: 40

about = new ContextMenuItem("About JW Player " + _loc2_ + "...");

3) Change this:

about = new ContextMenuItem("About JW Player " + _loc2_ + "...");

To This:

about = new ContextMenuItem("About Your Name" + "...");

 

5) Search for this:

Line: 55

navigateToURL(new URLRequest("http://www.longtailvideo.com/jwpabout/?a=r&v=" + PlayerVersion.version + "&m=f&e=" + _loc2_),"_top");

3) Change this:

navigateToURL(new URLRequest("http://www.longtailvideo.com/jwpabout/?a=r&v=" + PlayerVersion.version + "&m=f&e=" + _loc2_),"_top");

To This:

navigateToURL(new URLRequest("http://www.YourDomain.com/"),"_top");

 

6) Search for this:

Line: 64

private function _getLinkFlag(param1:String) : String
{
   switch(param1.toLowerCase())
  {
    case "pro":
    return "p";
    case "premium":
    return "r";
    case "enterprise":
    return "e";
    case "ads":
    return "a";
    default:
    return "f";
  }
}

Change this:

private function _getLinkFlag(param1:String) : String
{
    switch(param1.toLowerCase())
    { 
       case "pro":
       return "p";
       case "premium":
       return "r";
       case "enterprise":
       return "e";
       case "ads":
       return "a";
       default:
       return "f";
    }
}

To This:

private function _getLinkFlag(param1:String) : String
{
return undefined;
}

Select: Save, wait, and Select: Okay.

Now Save the file, Upload it, and Replace the one on your server.

Don't Forget To Clear Out Your Browser's Cache Images and Files: If Nothing Changes!

Details

Created : 2017-06-25 21:13:31, Last Modified : 2018-12-23 01:29:55

Click to listen highlighted text!