1.下载apache ant 并配置ant的目录到系统环境变量
2.下载FLEX3.5或FLEX4到d:/flex
3.下载Flowplayer源码
建立一个目录:d:/fplayer
svn checkout http://flowplayer-core.googlecode.com/svn/flowplayer/trunk/ flowplayer.core
svn checkout http://flowplayer-plugins.googlecode.com/svn/flash/ ./
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地址flex3dir=D:/flex
2 # 开始为没有EXE的,添加.exe
3 mxmlc_bin= ${flex3bindir}/mxmlc.exe
4 compc_bin= ${flex3bindir}/compc.exe
5 asdoc_bin= ${flex3bindir}/asdoc.exe
6 #上面下载PLUGINS的存放地址
7 devkit-dir=../flowplayer.devkit
8 plugins.dir=../
9 deploy.dir=./
2 # 开始为没有EXE的,添加.exe
3 mxmlc_bin= ${flex3bindir}/mxmlc.exe
4 compc_bin= ${flex3bindir}/compc.exe
5 asdoc_bin= ${flex3bindir}/asdoc.exe
6 #上面下载PLUGINS的存放地址
7 devkit-dir=../flowplayer.devkit
8 plugins.dir=../
9 deploy.dir=./
进入d:/fplayer/flowplayer.devkit
修改plugin-build.properties为如下
# 你的FLEX地址
flex3dir=D:/flex
# 你下载的flowplayer code 的存放地址
deploy_dir=../flowplayer.core
# 开始为没有exe的增加.exe
mxmlc_bin= ${flex3bindir}/mxmlc.exe
compc_bin= ${flex3bindir}/compc.exe
asdoc_bin= ${flex3bindir}/asdoc.exe
flex3dir=D:/flex
# 你下载的flowplayer code 的存放地址
deploy_dir=../flowplayer.core
# 开始为没有exe的增加.exe
mxmlc_bin= ${flex3bindir}/mxmlc.exe
compc_bin= ${flex3bindir}/compc.exe
asdoc_bin= ${flex3bindir}/asdoc.exe
分别进入
D:/fplayer/fixed-connection-provider
D:/fplayer/pseudostreaming
D:/fplayer/related
D:/fplayer/rtmp
D:/fplayer/securestreaming
D:/fplayer/slowmotion
D:/fplayer/smil
D:/fplayer/sorenson
D:/fplayer/viralvideos
D:/fplayer/youtube
D:/fplayer/adotube
D:/fplayer/akamai
D:/fplayer/analytics
D:/fplayer/audio
D:/fplayer/audiovisual
D:/fplayer/bwcheck
D:/fplayer/captions
D:/fplayer/cluster
D:/fplayer/common
D:/fplayer/content
D:/fplayer/controls
D:/fplayer/pseudostreaming
D:/fplayer/related
D:/fplayer/rtmp
D:/fplayer/securestreaming
D:/fplayer/slowmotion
D:/fplayer/smil
D:/fplayer/sorenson
D:/fplayer/viralvideos
D:/fplayer/youtube
D:/fplayer/adotube
D:/fplayer/akamai
D:/fplayer/analytics
D:/fplayer/audio
D:/fplayer/audiovisual
D:/fplayer/bwcheck
D:/fplayer/captions
D:/fplayer/cluster
D:/fplayer/common
D:/fplayer/content
D:/fplayer/controls
拷贝这写目录下trunk的文件到他的上一层
就是把trunk目录下的文件拷贝到和trunk目录同个目录下
进入D:/fplayer/flowplayer.core/src/actionscript/org/flowplayer/view
修改:Launcher.as
if (! VersionInfo.commercial) {
log.debug("Adding logo to canvas");
createLogoForCanvas();
}
#修改为
if (! VersionInfo.commercial) {
log.debug("Adding logo to canvas");
//createLogoForCanvas();
}
#第二个修改
if (!validateLicenseKey()) {
createLogoForCanvas();
resizeCanvasLogo();
}
#修改为
if (!validateLicenseKey()) {
//createLogoForCanvas();
//resizeCanvasLogo();
}
log.debug("Adding logo to canvas");
createLogoForCanvas();
}
#修改为
if (! VersionInfo.commercial) {
log.debug("Adding logo to canvas");
//createLogoForCanvas();
}
#第二个修改
if (!validateLicenseKey()) {
createLogoForCanvas();
resizeCanvasLogo();
}
#修改为
if (!validateLicenseKey()) {
//createLogoForCanvas();
//resizeCanvasLogo();
}
cmd 到 D:/fplayer/flowplayer.core 执行
#要商业版输入如下
ant build-biz
#要免费版输入
ant
#要所有版本输入
ant build-all
进入flowplayer.core 发现有很多SWF文件
其实有整套的,你在进入build 就可发现很多Flowplayer的功能都在里面,而且有很多插件,呵呵
以下为我编译的好的一个商业版的,需要的下载,但请勿用于商业用途,违反的自己承担后果
来源:http://www.cnblogs.com/liushannet/archive/2010/08/16/1800977.html