jw player 源码编译运行笔记
A.下载必须软件
下载5.7版本的jwplay源码
svncohttp://developer.longtailvideo.com/svn/tags/mediaplayer-5.7
下载FlexSDK3.5
http://fpdownload.adobe.com/pub/flex/sdk/builds/flex3/flex_sdk_3.5.0.12683.zip
下载Ant1.8
http://labs.renren.com/apache-mirror//ant/binaries/apache-ant-1.8.2-bin.zip
下载FlexUnit4.1
http://www.flexunit.org/releases/flexunit-4.1.0_RC2-28-3.5.0.12683.zip
配置好ant环境
B.修改配置文件
E:\work_space\jwplayer\mediaplayer-5.7\build\build.properties
修改
flexsdk=C:/flex/flex_sdk_3.5.0.12683
execextension=.exe
flexsdk表示flexsdk的目录
execextensionwindow平台是执行.exe所以这样配置.如果liunx自己看build.properties中的说明.
cmd后进入E:\work_space\jwplayer\mediaplayer-5.7\build\
执行ant编译是否成功了呢?
到这里源码已经跑起来了.
编译生成player.swf
编写player.xml
编写测试页面start.html
==================player.xml中内容=============
<asxversion="3.0">
<title>ExampleASXplaylist</title>
<entry>
<title>PNGImagewithduration</title>
<author>thePeachOpenMovieProject</author>
<abstract>BigBuckBunnyisashortanimatedfilmbytheBlenderInstitute,partoftheBlenderFoundation.</abstract>
<refhref="hy.jpg"/>
<durationvalue="00:00:10"/>
</entry>
<entry>
<title>flashad</title>
<author>thePeachOpenMovieProject</author>
<abstract>BigBuckBunnyisashortanimatedfilmbytheBlenderInstitute,partoftheBlenderFoundation.</abstract>
<moreinfohref="http://www.bigbuckbunny.org/"/>
<refhref="ad.swf"/>
<durationvalue="00:00:04"/>
</entry>
<entry>
<title>FLVvideo</title>
<author>thePeachOpenMovieProject</author>
<abstract>BigBuckBunnyisashortanimatedfilmbytheBlenderInstitute,partoftheBlenderFoundation.</abstract>
<moreinfohref="http://www.bigbuckbunny.org/"/>
<refhref="http://219.139.31.240/vkpws.video.qq.com/flv/7/65/61tTxY1SCNL.flv"/>
</entry>
<!--
<entry>
<title>MP3Audiowithimage</title>
<author>thePeachOpenMovieProject</author>
<abstract>BigBuckBunnyisashortanimatedfilmbytheBlenderInstitute,partoftheBlenderFoundation.</abstract>
<refhref="files/bunny.mp3"/>
<moreinfohref="http://www.bigbuckbunny.org/"/>
<paramname="image"value="files/bunny.jpg"/>
</entry>-->
<!--
<entry>
<title>Youtubevideowithstart</title>
<author>thePeachOpenMovieProject</author>
<abstract>BigBuckBunnyisashortanimatedfilmbytheBlenderInstitute,partoftheBlenderFoundation.</abstract>
<moreinfohref="http://www.bigbuckbunny.org/"/>
<refhref="http://youtube.com/watch?v=IBTE-RoMsvw"/>
<starttimevalue="10"/>
</entry>-->
</asx>
==================start.html中内容=============
<html>
<head/>
<body>
<objectclassid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'width='1000'height='600'id='single1'name='single1'>
<paramname='movie'value='player.swf'>
<paramname='allowfullscreen'value='true'>
<paramname='allowscriptaccess'value='always'>
<paramname='wmode'value='transparent'>
<paramname='flashvars'value='playlistfile=player.xml&playlistsize=200&autostart=true&repeat=list'>
<embed
type='application/x-shockwave-flash'
id='single2'
name='single2'
src='player.swf'
width='1000'
height='600'
bgcolor='undefined'
allowscriptaccess='always'
allowfullscreen='true'
wmode='transparent'
flashvars='playlistfile=player.xml&playlistsize=200&autostart=true&repeat=list'>
</embed>
</object>
</body>
</html>
==================直接通过url访问==================
http://localhost/jwplay/player.swf?file=http://219.139.31.240/vkpws.video.qq.com/flv/7/65/61tTxY1SCNL.flv&autostart=1&skin=http://www.see99.cn/player/beelden.zip&image=hy.jpg&shownavigation=true&rotatetime=20000&bufferlength=20000