RealPlayer连续播放 怎么样实现RealPlayer在线连续播放??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=100 id=video1 width=275 VIEWASTEXT> <param name="_ExtentX" value="7276"> <param name="_ExtentY" value="1588"> <param name="AUTOSTART" value="-1"> <param name="SHUFFLE" value="0"> <param name="PREFETCH" value="0"> <param name="NOLABELS" value="0"> <param name="SRC" value="http://localhost/MyMusic/play.asx"> <param name="CONTROLS" value="StatusBar,ControlPanel"> <param name="CONSOLE" value="Clip1"> <param name="LOOP" value="0"> <param name="NUMLOOP" value="0"> <param name="CENTER" value="0"> <param name="MAINTAINASPECT" value="0"> <param name="BACKGROUNDCOLOR" value="#000000"> <embed src="http://localhost/MyMusic/play.asx" type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ControlPanel,StatusBar" height="60" width="275" autostart="true"> </embed> </OBJECT>上面的代码不能实现?错在什么地方?? html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="admin/style.css" type="text/css"> <TITLE>mediaPlayer</TITLE> </head> <SCRIPT LANGUAGE="JavaScript">function changeSize(newSize) {document.mediaPlayer.fullScreen = true;} </SCRIPT> <BODY topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <table border="1" cellpadding="1" cellspacing="1"> <tr> <td> <SCRIPT LANGUAGE="VBScript"><!--On Error Resume NextlngMP70 = IsObject(CreateObject("WMPlayer.OCX"))' Windows Media Player 7 CodeIf (lngMP70) Then document.write "<OBJECT ID=mediaPlayer " document.write " CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" document.write " standby=""Loading Microsoft Windows Media Player components..."" " document.write " TYPE=""application/x-oleobject"" width=""400"" height=""300"">" document.write "<PARAM NAME=""url"" VALUE=""file:///C:\Inetpub\wwwroot\News\Music\mp3\media.m3u"">" document.write "<param name=""enableErrorDialogs"" value=""0"">" '出错提示 document.write "<PARAM NAME=""AutoStart"" VALUE=""1"">" '自动播放 document.write "<param name=""DisplaySize"" value=""1"">" '表示按原始尺寸播放 document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">" document.write "<param name=""EnableContextMenu"" value=""false"">" '禁止右键 document.write "<param name=""EnableFullScreenControls"" value=""1"">" '允许切换为全屏 document.write "</OBJECT>" ' Windows Media Player 6.4 CodeElse document.write "<OBJECT ID=mediaPlayer " document.write " CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" document.write "CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" document.write " standby=""Loading Microsoft Windows Media Player components..."" " document.write " TYPE=""application/x-oleobject"" width=""462"" height=""340"">" document.write "<PARAM NAME=""FileName"" VALUE=""mms://vod22.cqcnc.com/200409/0908/42.wmv"">" document.write "<param name=""enableErrorDialogs"" value=""0"">" '出错提示 document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">" '自动播放 document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">" document.write "<param name=""EnableContextMenu"" value=""false"">" '禁止右键 document.write "<param name=""EnableFullScreen Controls"" value=""1"">" '允许切换为全屏 document.write "</OBJECT>"End If--> </SCRIPT> <SCRIPT LANGUAGE="JScript" FOR="mediaPlayer" EVENT="error()">// Store the most recent error item number.var max = mediaPlayer.error.errorCount - 1 // Store the most recent error in an error item object.var errItem = mediaPlayer.error.item(max);// Use the error item object to store the error info.errDesc = errItem.errorDescription;errNum = ("提示:");errcncxp1 = ("① 如果提示【无法播放该文件,因为服务器不响应】 --该影片所在的视频服务器在线人数已满,请稍后再访问,或者选择其他节目收看!");errcncxp2 = ("② 如果提示【找不到指定文件,请确保键入的路径正确】 --该影片的播放地址有问题,请到影视沙龙论坛向版主反映,谢谢!");errcncxp3 = ("③ 如果提示【无法连续到该服务器上。可能是服务器名称有和或服务器正忙】 --由于你的网络问题无法连接到宽带体验视频服务器,请设置重庆网通的DNS:211.158.2.68 即可!");showname = ("不能收看的原因:");// Display the error info.alert(errNum + "\n" + "\n" + errDesc + "\n" + "\n" + showname + "\n" + "\n" + errcncxp1 + "\n" + "\n" + errcncxp2 + "\n" + "\n" + errcncxp3); </SCRIPT> <table width="450" border="0" cellspacing="0" cellpadding="0"> <form name="playerCtrl"> <tr> <td width="80" height="22"> <input type="button" class="button" value="全屏播放" name="normal" onClick="changeSize()"> </td> <td valign="bottom"><font color="#000000"> <script language="VBScript"> If (lngMP70) Then document.write "您的Windows Media Player播放器版本:" document.write MediaPlayer.versionInfo Else document.write "您的Media Player 6.4播放器版本过低,请安装WMP 9.0即可收看" end if </script> </font> </td> </tr> </form> </table> </td> </tr> </table> </BODY> “.asx”这个后缀名的是什么文件啊? <html> <head> <title>播放器调用</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <BODY leftMargin="0" topMargin="0"> <embed name="player1" src="file:///C:\Inetpub\wwwroot\WebPlayer\mp3\media.m3u" type="audio/x-pn-realaudio-plugin" controls="ImageWindow,ControlPanel,StatusBar" width="400" height="300" border="0" autostart="true" DisplaySize="1"> </BODY></html> acco(天天) M3U文件怎么做的!能给一份列子吗? acco(天天) 怎么样才能生成M3U文件??谢谢!! 开发 WebForm 设计器 cookie在一般处理程序的清楚!!!! 求助:Gridview动态绑定动态编辑问题 网页中的table 的height=100%无效, [菜鸟求助]如何调用父类的构造函数? 关于.net 2.0新特性的重大Bug 求sql语句,不太复杂 用ASP.NET创建了框架网页,怎么用代码实现(不用链接方法)改变另一框架窗口的URL? JavaScript页面传值时,怎么传变量值 求控制文本框只能输入数字和字母的正则表达式,谢谢! ●在DLL中设置Session为什么说未将对象设置到引用实例?? 一个非常复杂的数据显示问题!!!!!!help me!!!!!!!!
<param name="_ExtentX" value="7276">
<param name="_ExtentY" value="1588">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="SRC" value="http://localhost/MyMusic/play.asx">
<param name="CONTROLS" value="StatusBar,ControlPanel">
<param name="CONSOLE" value="Clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
<embed src="http://localhost/MyMusic/play.asx" type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ControlPanel,StatusBar" height="60" width="275" autostart="true">
</embed>
</OBJECT>
上面的代码不能实现?错在什么地方??
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="admin/style.css" type="text/css">
<TITLE>mediaPlayer</TITLE>
</head>
<SCRIPT LANGUAGE="JavaScript">function changeSize(newSize) {document.mediaPlayer.fullScreen = true;} </SCRIPT>
<BODY topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table border="1" cellpadding="1" cellspacing="1">
<tr>
<td>
<SCRIPT LANGUAGE="VBScript">
<!--
On Error Resume Next
lngMP70 = IsObject(CreateObject("WMPlayer.OCX"))' Windows Media Player 7 Code
If (lngMP70) Then
document.write "<OBJECT ID=mediaPlayer "
document.write " CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""400"" height=""300"">"
document.write "<PARAM NAME=""url"" VALUE=""file:///C:\Inetpub\wwwroot\News\Music\mp3\media.m3u"">"
document.write "<param name=""enableErrorDialogs"" value=""0"">" '出错提示
document.write "<PARAM NAME=""AutoStart"" VALUE=""1"">" '自动播放
document.write "<param name=""DisplaySize"" value=""1"">" '表示按原始尺寸播放
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "<param name=""EnableContextMenu"" value=""false"">" '禁止右键
document.write "<param name=""EnableFullScreenControls"" value=""1"">" '允许切换为全屏
document.write "</OBJECT>"
' Windows Media Player 6.4 Code
Else
document.write "<OBJECT ID=mediaPlayer "
document.write " CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
document.write "CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""462"" height=""340"">"
document.write "<PARAM NAME=""FileName"" VALUE=""mms://vod22.cqcnc.com/200409/0908/42.wmv"">"
document.write "<param name=""enableErrorDialogs"" value=""0"">" '出错提示
document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">" '自动播放
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "<param name=""EnableContextMenu"" value=""false"">" '禁止右键
document.write "<param name=""EnableFullScreen Controls"" value=""1"">" '允许切换为全屏
document.write "</OBJECT>"End If
-->
</SCRIPT>
<SCRIPT LANGUAGE="JScript" FOR="mediaPlayer" EVENT="error()">// Store the most recent error item number.
var max = mediaPlayer.error.errorCount - 1 // Store the most recent error in an error item object.
var errItem = mediaPlayer.error.item(max);// Use the error item object to store the error info.
errDesc = errItem.errorDescription;
errNum = ("提示:");
errcncxp1 = ("① 如果提示【无法播放该文件,因为服务器不响应】 --该影片所在的视频服务器在线人数已满,请稍后再访问,或者选择其他节目收看!");
errcncxp2 = ("② 如果提示【找不到指定文件,请确保键入的路径正确】 --该影片的播放地址有问题,请到影视沙龙论坛向版主反映,谢谢!");
errcncxp3 = ("③ 如果提示【无法连续到该服务器上。可能是服务器名称有和或服务器正忙】 --由于你的网络问题无法连接到宽带体验视频服务器,请设置重庆网通的DNS:211.158.2.68 即可!");
showname = ("不能收看的原因:");
// Display the error info.
alert(errNum + "\n" + "\n" + errDesc + "\n" + "\n" + showname + "\n" + "\n" + errcncxp1 + "\n" + "\n" + errcncxp2 + "\n" + "\n" + errcncxp3);
</SCRIPT>
<table width="450" border="0" cellspacing="0" cellpadding="0">
<form name="playerCtrl">
<tr>
<td width="80" height="22">
<input type="button" class="button" value="全屏播放" name="normal" onClick="changeSize()">
</td>
<td valign="bottom"><font color="#000000">
<script language="VBScript">
If (lngMP70) Then
document.write "您的Windows Media Player播放器版本:"
document.write MediaPlayer.versionInfo
Else
document.write "您的Media Player 6.4播放器版本过低,请安装WMP 9.0即可收看"
end if
</script>
</font>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</BODY>
<head>
<title>播放器调用</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<BODY leftMargin="0" topMargin="0">
<embed name="player1" src="file:///C:\Inetpub\wwwroot\WebPlayer\mp3\media.m3u" type="audio/x-pn-realaudio-plugin"
controls="ImageWindow,ControlPanel,StatusBar" width="400" height="300" border="0" autostart="true"
DisplaySize="1">
</BODY>
</html>
能给一份列子吗?
怎么样才能生成M3U文件??
谢谢!!