项目中需要做一个简单的视频管理功能。
需要能上传视频,并能对上传完成的视频自动截取。
flash视频播放采用代码如下:
<object type="application/x-shockwave-flash" data="../player/vcastr3.swf" width="600"
height="450" id="vcastr3">
<param name="movie" value="../player/vcastr3.swf" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="xml=
{vcastr}
{channel}
{item}
{source}<%=videoPath %>{/source}
{duration}{/duration}
{title}企鹅{/title}
{/item}
{/channel}
{config}
{isAutoPlay}false{/isAutoPlay}
{controlPanelMode}normal{/controlPanelMode}
{/config}
{plugIns}
{logoPlugIn}
{url}/player/logoPlugIn.swf{/url}
{logoText}<%=centerName %>{/logoText}
{logoTextAlpha}0.75{/logoTextAlpha}
{logoTextFontSize}30{/logoTextFontSize}
{logoTextLink}http://www.tongye114.com{/logoTextLink}
{logoTextColor}0xffffff{/logoTextColor}
{textMargin}20 20 auto auto{/textMargin}
{/logoPlugIn}
{/plugIns}
{/vcastr}" />
</object>
所需的.swf文件,如需要可发送给大家。
朋友也介绍了另外一种播放代码。flowerPlayer。可到官网上查询用法。