1.下载apache ant 并配置ant的目录到系统环境变量

2.下载FLEX3.5或FLEX4到d:/flex

3.下载Flowplayer源码

建立一个目录:d:/fplayer

 

  1. svn checkout http://flowplayer-core.googlecode.com/svn/flowplayer/trunk/ flowplayer.core  
  2. svn checkout http://flowplayer-plugins.googlecode.com/svn/flash/ ./  

建立code 目录进入在建立build

拷贝d:/fplayer/flowplayer.devkit/flowplayer.swc到d:/code/build/flowplayer.swc

进入d:/fplayer/flowplayer.core

修改build.properties为如下

 

  1. # 你的FLEX地址
  2. flex3dir=D:/flex  
  3.  
  4. # 开始为没有EXE的,添加.exe   
  5. mxmlc_bin= ${flex3bindir}/mxmlc.exe  
  6. compc_bin= ${flex3bindir}/compc.exe  
  7. asdoc_bin= ${flex3bindir}/asdoc.exe  
  8. #上面下载PLUGINS的存放地址
  9. devkit-dir=../flowplayer.devkit  
  10. plugins.dir=../  
  11. deploy.dir=./ 


进入d:/fplayer/flowplayer.devkit

修改plugin-build.properties为如下

 

  1. # 你的FLEX地址  
  2. flex3dir=D:/flex  
  3.  
  4. # 你下载的flowplayer code 的存放地址  
  5. deploy_dir=../flowplayer.core  
  6.  
  7. # 开始为没有exe的增加.exe  
  8. mxmlc_bin= ${flex3bindir}/mxmlc.exe  
  9. compc_bin= ${flex3bindir}/compc.exe  
  10. asdoc_bin= ${flex3bindir}/asdoc.exe 

分别进入

 

  1. D:/fplayer/fixed-connection-provider  
  2. D:/fplayer/pseudostreaming  
  3. D:/fplayer/related  
  4. D:/fplayer/rtmp  
  5. D:/fplayer/securestreaming  
  6. D:/fplayer/slowmotion  
  7. D:/fplayer/smil  
  8. D:/fplayer/sorenson  
  9. D:/fplayer/viralvideos  
  10. D:/fplayer/youtube  
  11. D:/fplayer/adotube  
  12. D:/fplayer/akamai  
  13. D:/fplayer/analytics  
  14. D:/fplayer/audio  
  15. D:/fplayer/audiovisual  
  16. D:/fplayer/bwcheck  
  17. D:/fplayer/captions  
  18. D:/fplayer/cluster  
  19. D:/fplayer/common  
  20. D:/fplayer/content  
  21. D:/fplayer/controls  

拷贝这写目录下trunk的文件到他的上一层

就是把trunk目录下的文件拷贝到和trunk目录同个目录下

进入D:/fplayer/flowplayer.core/src/actionscript/org/flowplayer/view

修改:Launcher.as

 

  1. if (! VersionInfo.commercial) {  
  2.                 log.debug("Adding logo to canvas");  
  3.                 createLogoForCanvas();  
  4.             }  
  5. #修改为  
  6. if (! VersionInfo.commercial) {  
  7.                 log.debug("Adding logo to canvas");  
  8.                 //createLogoForCanvas();  
  9.             }  
  10.  
  11. #第二个修改  
  12. if (!validateLicenseKey()) {  
  13.                 createLogoForCanvas();  
  14.                 resizeCanvasLogo();  
  15.             }  
  16. #修改为  
  17. if (!validateLicenseKey()) {  
  18.                 //createLogoForCanvas();  
  19.                 //resizeCanvasLogo();  
  20.             } 

cmd 到 D:/fplayer/flowplayer.core 执行

 

  1. #要商业版输入如下  
  2. ant build-biz  
  3. #要免费版输入  
  4. ant  
  5. #要所有版本输入  
  6. ant build-all 

进入flowplayer.core 发现有很多SWF文件

其实有整套的,你在进入build 就可发现很多Flowplayer的功能都在里面,而且有很多插件,呵呵

以下为我编译的好的一个商业版的,需要的下载,但请勿用于商业用途,违反的自己承担后果