!!!!!怎样在asp.net页中实现mediaplay播放视频文件!!!!!! !!!!!怎样在asp.net页中实现mediaplay播放视频文件!!!!!! 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <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> 最简单的写法:<embed id="MediaPlaye" src='test.mp3'></embed> 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一下,一大把 Google地图&&ASP.NET,我迷茫了 求高手解决 乱码问题.在线等! 怎么得到gridview里的控件 弱弱的问下-- 关于Ajax控件 如何让表单提交剪贴板的内容,请举个例 大家帮我看看这段代码那里错了 为什么我的Javascript不能正常运行? 请各位介绍几个关于asp.net(c#)书的网站-----可以下载的!!!!!! 用C#写WEB程序,不能调试,怎办? 为什么Requst.Form.Get("userid")无法获取地址栏中aspx?userid=1000中的userid的值 <高手进啊>.net 和java 的socket的性能比较?
<embed id="MediaPlaye" src='test.mp3'></embed>
{
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一下,一大把