!!!!!怎样在asp.net页中实现mediaplay播放视频文件!!!!!!
                                          谢谢

解决方案 »

  1.   

    <OBJECT id=mePlay width=400 height=380  style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid;BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid" codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,5,0803 type=application/x-oleobject standby="Loading Windows Media Player components..."   classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95> <PARAM NAME="AutoSize" VALUE="true"><PARAM NAME="AutoStart" VALUE="true"> <PARAM NAME="ShowControls" VALUE="true"> <PARAM NAME="ShowDisplay" VALUE="false"> <PARAM NAME="ShowGotoBar" VALUE="false"> <PARAM NAME="ShowTracker" VALUE="true"><PARAM NAME="ShowStatusBar" VALUE="true"> <PARAM NAME="AnimationAtStart" VALUE="false"><PARAM NAME="TransparentAtStart" VALUE="false"> <PARAM NAME="EnableContextMenu" VALUE="true"> <PARAM NAME="ClickToPlay" VALUE="true"> <PARAM NAME="FileName" VALUE="../upload/joke/allfile/2005-10/24/joke_2005102415241.wmv"></OBJECT>
      

  2.   

    最简单的写法:
    <embed id="MediaPlaye"  src='test.mp3'></embed>
      

  3.   

    private string PlayWMV(string url)
    {
    System.Text.StringBuilder sb = new System.Text.StringBuilder();
    sb.Append("<object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width=450 height=420 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject> ");
    sb.Append("<param name='URL' value='"+ url +"'>");
    sb.Append("<PARAM NAME='UIMode' value='full'><PARAM NAME='AutoStart' value='true'>");
    sb.Append("<PARAM NAME='Enabled' value='true'>");
    sb.Append("<PARAM NAME='enableContextMenu' value='false'>");
    sb.Append("<param name='WindowlessVideo' value='true'></object>"); return sb.ToString(); }用 "播放" search一下,一大把