问征夫以前路
感谢所有关心过支持过我的人, 感谢所有恨过我嘲笑过我的人 !
posts - 30,comments - 147,trackbacks - 0

       Vcastr3.0 - flash video(flv) player 播放器网址:www.ruochi.com/main/2008/03/19/vcastr-30/     
 
       我的网站使用了Vcastr3.0 - flash video(flv) player 播放器,不过传到我的win2003服务器上就不能播放我自己的flv了,原以为是路径错了,或者文件太大,检查过后不是,因为国内大多都是Win2003的主机。默认是没有指定输出FLV这种格式,虽然FTP里面可以看见,但无法通过http访问,也就无法播放了。后来在网上搜到了,高人解决此问题的方法,贴出来给大家分享。
        哈哈,另外,附加上我的太极网链接:www.chinesetaijiquan.com

        原因:WIN2003加强了IIS6的MIME验证,一切未注册扩展文件格式统统显示404错误。

        解决方法一: 
        手动在IIS中HTTP头中的MIME类型中添加MIME影射关系,MIME类型:video/x-flv ,扩展名:flv,即可通过Flash+客户端Load进来播放。

        解决方法二:
        虚拟主机上的解决办法(虚拟主机都不支持Flv格式文件的问题):●比如你的Flv文件名称是a.flv,在虚拟主机上建一个名为“a.flv”的目录;●在此目录下放你的Flv格式文件,将其文件名改名为“index.htm ”;●播放器中的文件名保持原样不动。

        解决方法三:
        最简单的办法是把FLV文件后缀改成SWF。 

        我是通过上面的方法三,解决此问题。简单实用!
        下面的方法是前辈总结的,我没有试过,有兴趣的朋友可以参考一下。

_____________________________________________________________________________________________

解决方法二:
_____________________________________________________________________________________________

我的HTML代码:
<object type="application/x-shockwave-flash" data="Vcastr3/vcastr3.swf" width="170"
    height="157" id="vcastr3">
    <param name="movie" value="Vcastr3/vcastr3.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="FlashVars" value="xml=Vcastr3/vcastr.xml" />
</object>

_____________________________________________________________________________________________

我的XML代码:
<?xml version="1.0" encoding="utf-8" ?>
<vcastr>
<channel>
  <item>
   <source>http://www.holylandtravel.cn/Vcastr3/ShengDiSong.flv</source>
   <duration></duration>
   <title>圣地社歌</title>
   <link></link>
  </item>
</channel>
<config>
  <bufferTime>4</bufferTime>
  <contralPanelAlpha>1</contralPanelAlpha>
  <controlPanelBgColor>0xff6600</controlPanelBgColor>
  <controlPanelBtnColor>0xffffff</controlPanelBtnColor>
  <contralPanelBtnGlowColro>0xffff00</contralPanelBtnGlowColro>
  <controlPanelMode>bottom</controlPanelMode>
  <defautVolume>1</defautVolume>
  <isAutoPlay>false</isAutoPlay>
  <isLoadBegin>true</isLoadBegin>
  <isShowAbout>true</isShowAbout>
  <scaleMode>showAll</scaleMode>
  <isRepeat>false</isRepeat>
</config>
</vcastr>
_____________________________________________________________________________________________ 
 

解决方法三:
_____________________________________________________________________________________________

把FLV文件后缀改成SWF

我的HTML代码:
<object type="application/x-shockwave-flash" data="Vcastr3/vcastr3.swf" width="170"
    height="157" id="vcastr3">
    <param name="movie" value="Vcastr3/vcastr3.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="FlashVars" value="xml=Vcastr3/vcastr.xml" />
</object>

_____________________________________________________________________________________________

我的XML代码:
<?xml version="1.0" encoding="utf-8" ?>
<vcastr>
<channel>
  <item>
   <source>../Vcastr3/ShengDiSong.swf</source>
   <duration></duration>
   <title>圣地社歌</title>
   <link></link>
  </item>
  <item>
   <source>../Vcastr3/ShengDiSong.flv</source>
   <duration></duration>
   <title>圣地社歌</title>
   <link></link>
  </item>
</channel>
<config>
  <bufferTime>4</bufferTime>
  <contralPanelAlpha>1</contralPanelAlpha>
  <controlPanelBgColor>0xff6600</controlPanelBgColor>
  <controlPanelBtnColor>0xffffff</controlPanelBtnColor>  
  <contralPanelBtnGlowColro>0xffff00</contralPanelBtnGlowColro>  
  <controlPanelMode>bottom</controlPanelMode>  
  <defautVolume>1</defautVolume>
  <isAutoPlay>false</isAutoPlay>
  <isLoadBegin>true</isLoadBegin>
  <isShowAbout>true</isShowAbout>
  <scaleMode>showAll</scaleMode>
  <isRepeat>false</isRepeat>
</config>
</vcastr>

posted on 2009-09-22 20:44 kenzhang 阅读(2586) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: