1.3、编译自定义(自定义logo、去水印)-jwplayer-V6.8

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文件中

posted @ 2014-07-14 10:53  土豆王  阅读(892)  评论(0编辑  收藏  举报