1.三、編譯自定義(自定義logo、去水印)-jwplayer-V6.8

1.3.一、編譯前的準備

1.3.1.一、/build/build.properties修改

須要修改的參數以下:php

flexsdk = D:/Program Files/Adobe/Adobe Flash Builder 4.7/sdks/4.6.0html

execextension =.exe(windows環境)html5

flexsdk.target = 11.1.0windows

application.majorversion = 6app

application.minorversion = 8ide

1.3.1.二、/build/build.xml修改

Line 71: <arg line="assets/six.xml" />(定義編譯加載的皮膚)flex

 

1.3.二、自定義屬性

1.3.2.一、去水印logo

一、flash版本:/src/flash/com/longailvideo/jwplayer/view/components/LogoComponent.asui

         Line:55{編碼

                   loadFile();加密

                   =>

                   ///loadFile();

         }

二、html5版本:/src/js/html5/jwplayer.html5.logo.js

         Line:78{

                   _logo.src =(_settings.prefix ? _settings.prefix : "") + _settings.file;

                   =>

                   _logo.src ="";// (_settings.prefix ? _settings.prefix : "") + _settings.file;

         }

1.3.2.二、修改鼠標右鍵提示信息

一、flash版本:/src/flash/com/longailvideo/jwplayer/view/RightclickMenu.as

         右鍵菜單名字

         Line:61{

                   about = new ContextMenuItem('About JW Player ' + _player.version + '...');

                   =>

                   about = new ContextMenuItem('About hrloo Player V1.01');

         }

         右鍵菜單連接

         Line:66{

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

                   =>

                   navigateToURL(new URLRequest('http://www.hrloo.com'), '_top');

         }

二、html5版本:/src/js/html5/jwplayer.html5.rightclick.js

         右鍵菜單名字

         Line:11{

                   ABOUT_DEFAULT = "About JW Player ",

                   =>

                   ABOUT_DEFAULT = "About hrloo Player ",

         }

         Line:29{

                   abouttext: ABOUT_DEFAULT + html5.version + '...'

                   =>

                   abouttext: ABOUT_DEFAULT + 'V1.0.1'

         }

         右鍵菜單連接

         Line:12{

                   LINK_DEFAULT = "http://www.longtailvideo.com/jwpabout/?a=r&v=",

                   =>

                   LINK_DEFAULT = "http://www.hrloo.com",

         }

         Line:28{

                   aboutlink: LINK_DEFAULT+html5.version+'&m=h&e=o',

                   =>

                   aboutlink: LINK_DEFAULT,

         }

1.3.2.三、自定義皮膚

/assets/目錄圖片爲播放器加載的圖片

/assets/six.xml播放器皮膚設置

播放器上面的圖片已被加密成data:image/png;base64

能夠在http://www.vgot.net/test/image2base64.php對修改好的圖片和圖標進行編碼和解碼替換到six.xml文件中

相關文章
相關標籤/搜索