1.3、編譯自訂(自訂logo、去浮水印)-jwplayer-V6.8

來源:互聯網
上載者:User

標籤:http   檔案   io   html   line   re   

1.3.1、編譯前的準備1.3.1.1、/build/build.properties修改

需要修改的參數如下:

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

execextension =.exe(windows環境)

flexsdk.target = 11.1.0

application.majorversion = 6

application.minorversion = 8

1.3.1.2、/build/build.xml修改

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

 

1.3.2、自訂屬性1.3.2.1、去浮水印logo

1、flash版本:/src/flash/com/longailvideo/jwplayer/view/components/LogoComponent.as

         Line:55{

                   loadFile();

                   =>

                   ///loadFile();

         }

2、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.2、修改滑鼠右鍵提示資訊

1、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‘);

         }

2、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.3、自訂皮膚

/assets/目錄圖片為播放器載入的圖片

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

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

可以在http://www.vgot.net/test/image2base64.php對修改好的圖片和表徵圖進行編碼和解碼替換到six.xml檔案中

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.