日期:2014-05-17 浏览次数:20466 次
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="shipin.ascx.cs" Inherits="mphomeweb.userControls.shipin" %> <object type="application/x-shockwave-flash" data="../vcastr3.swf"width="400" height="220" id="vcastr3"> <param name="movie" value="vcastr3.swf"/> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="xml= <vcastr> <asp:Repeater ID="rptShipin" runat="server"> <ItemTemplate> <channel> <item> <source><%#Eval("source")%></source> <duration></duration> <title></title> <link><%#Eval("link")%></link> </item> </channel> </ItemTemplate> </asp:Repeater> <config> <buffertime>4</buffertime> <contralpanelalpha>0.75</contralpanelalpha> <controlpanelbgcolor>0xff6600</controlpanelbgcolor> <controlpanelbtncolor>0xffffff</controlpanelbtncolor> <contralpanelbtnglowcolro>0xffff00</contralpanelbtnglowcolro> <controlpanelmode>float</controlpanelmode> <defautvolume>0.8</defautvolume> <isautoplay>true</isautoplay> <isloadbegin>true</isloadbegin> <isRepeat>true</isRepeat> <isshowabout>false</isshowabout> <scalemode>exactFit</scalemode> </config> <plugIns> <logoPlugIn> <url>../logoPlugIn.swf</url> <logoText><asp:Literal runat="server" ID="ltrLogoText" /></logoText> <logoTextAlpha>0.75</logoTextAlpha> <logoTextFontSize>25</logoTextFontSize> <logoTextLink> <asp:Literal runat="server" ID="ltrLogoTextLink" /> </logoTextLink> <logoTextColor>0xffffff</logoTextColor> <textMargin>20 20 auto auto</textMargin> </logoPlugIn> </plugIns> </vcastr>"/> </object>
------解决方案--------------------
要是播放.wmv格式的话,我这有代码
1.前台代码
<form id="form1" runat="server">
<object class="OBJECT" id="MediaPlayer" align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">