您的位置:首页 > 编程语言 > Delphi

用Delphi将数据导入到Excel并控制Excel

2010-09-17 15:11 281 查看
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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: