jw player 源码编译运行笔记

A.下载必须软件

下载5.7 版本的jw play 源码
svn co http://developer.longtailvideo.com/svn/tags/mediaplayer-5.7

下载 Flex SDK 3.5
http://fpdownload.adobe.com/pub/flex/sdk/builds/flex3/flex_sdk_3.5.0.12683.zip
下载 Ant 1.8
http://labs.renren.com/apache-mirror//ant/binaries/apache-ant-1.8.2-bin.zip
下载 FlexUnit 4.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的目录
execextension window平台是执行.exe 所以这样配置.如果liunx自己看build.properties中的说明.
cmd 后进入E:\work_space\jwplayer\mediaplayer-5.7\build\
执行ant 编译 是否成功了呢?

到这里源码已经跑起来了.
编译生成 player.swf
编写 player.xml
编写测试页面 start.html

==================player.xml 中内容=============
<asx version="3.0">
<title>Example ASX playlist</title>
<entry>
<title>PNG Image with duration</title>
<author>the Peach Open Movie Project</author>
<abstract>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation.</abstract>
<ref href="hy.jpg" />
<duration value="00:00:10" />
</entry>

<entry>
<title>flash ad</title>
<author>the Peach Open Movie Project</author>
<abstract>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation.</abstract>
<moreinfo href="http://www.bigbuckbunny.org/" />
<ref href="ad.swf" />
<duration value="00:00:04" />
</entry>

<entry>
<title>FLV video</title>
<author>the Peach Open Movie Project</author>
<abstract>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation.</abstract>
<moreinfo href="http://www.bigbuckbunny.org/" />
<ref href="http://219.139.31.240/vkpws.video.qq.com/flv/7/65/61tTxY1SCNL.flv" />
</entry>
<!--
<entry>
<title>MP3 Audio with image</title>
<author>the Peach Open Movie Project</author>
<abstract>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation.</abstract>
<ref href="files/bunny.mp3" />
<moreinfo href="http://www.bigbuckbunny.org/" />
<param name="image" value="files/bunny.jpg" />
</entry> -->

<!--
<entry>
<title>Youtube video with start</title>
<author>the Peach Open Movie Project</author>
<abstract>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation.</abstract>
<moreinfo href="http://www.bigbuckbunny.org/" />
<ref href="http://youtube.com/watch?v=IBTE-RoMsvw" />
<starttime value="10" />
</entry> -->
</asx>

================== start.html 中内容=============
<html>
<head/>
<body>
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='1000' height='600' id='single1' name='single1'>
<param name='movie' value='player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值