网页制作 flvplayer.swf无法播放服务器上flv文件 如何设置
如题,想做个网页,嵌入flash播放器,能够播放本地服务器上flv文件总是不成功,代码如下:<objectclassid="clsid:D27CDB6E-AE6D-11c...
如题,想做个网页,嵌入flash播放器,能够播放本地服务器上flv文件
总是不成功,代码如下:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="300"<!--视频尺寸-->>
<param name="movie" value="Flvplayer.swf" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="vcastr_file=virus.flv&IsAutoPlay=1&LogoText=www.fccctv.cn"/>
<embed src="Flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file=virus.flv<!--视频路径-->&IsAutoPlay=1<!--是否自动播放-->&LogoText=www.fccctv.cn" <!--视频标题-->quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="400"></embed>
</object>
其中flvplayer.swf与要播放的virus.flv都在wwwroot文件夹下 展开
总是不成功,代码如下:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="300"<!--视频尺寸-->>
<param name="movie" value="Flvplayer.swf" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="vcastr_file=virus.flv&IsAutoPlay=1&LogoText=www.fccctv.cn"/>
<embed src="Flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file=virus.flv<!--视频路径-->&IsAutoPlay=1<!--是否自动播放-->&LogoText=www.fccctv.cn" <!--视频标题-->quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="400"></embed>
</object>
其中flvplayer.swf与要播放的virus.flv都在wwwroot文件夹下 展开
展开全部
代码调用方式一
( 推荐 兼容性好) 第一步:
<script type="text/javascript" src="swfobject.js"></script>
第二步:
<p id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
第三步:
var s7 = new SWFObject("FlvPlayer2010.swf","playlist","300","312","7");
s7.addParam("allowfullscreen","true");
s7.addVariable("displayheight","200");
s7.addVariable("shuffle","true");
s7.addVariable("autostart","false");
s7.addVariable("backcolor","0x3b2e7e");
s7.addVariable("frontcolor","0xCCCCCC");
s7.addVariable("lightcolor","0xffffff");
s7.addVariable("width","300");
s7.addVariable("height","312");
s7.write("player7");
代码调用方式二 <object type="application/x-shockwave-flash" width="400" height="220" wmode="transparent data="FlvPlayer201002.swf?file=movies/001.flv">
<param name="movie" value="FlvPlayer201002.swf?file=movies/001.flv" />
<param name="wmode" value="transparent" />
</object>
( 推荐 兼容性好) 第一步:
<script type="text/javascript" src="swfobject.js"></script>
第二步:
<p id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
第三步:
var s7 = new SWFObject("FlvPlayer2010.swf","playlist","300","312","7");
s7.addParam("allowfullscreen","true");
s7.addVariable("displayheight","200");
s7.addVariable("shuffle","true");
s7.addVariable("autostart","false");
s7.addVariable("backcolor","0x3b2e7e");
s7.addVariable("frontcolor","0xCCCCCC");
s7.addVariable("lightcolor","0xffffff");
s7.addVariable("width","300");
s7.addVariable("height","312");
s7.write("player7");
代码调用方式二 <object type="application/x-shockwave-flash" width="400" height="220" wmode="transparent data="FlvPlayer201002.swf?file=movies/001.flv">
<param name="movie" value="FlvPlayer201002.swf?file=movies/001.flv" />
<param name="wmode" value="transparent" />
</object>
参考资料: http://www.89525.net/blog/flvplayer/
展开全部
也许是你空间服务器不支持flv格式或者你没设置
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
要配置下的,搞不定了找我
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你可以用dreamweaver 做啊或者用记事本啊直接加啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询