| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 557 人关注过本帖
标题:[求助]asp中音乐播放问题播放不了
只看楼主 加入收藏
rodney520
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2006-10-7
收藏
 问题点数:0 回复次数:1 
[求助]asp中音乐播放问题播放不了


<!--------------------------------- 播放器位置开始 ---------------------------->
<TABLE cellSpacing=0 cellPadding=0 width=350 align=center border=0>
<TBODY>
<TR>
<TD width=15 background="play/chattingroom2_01.gif" height=22></TD>
<TD width=320><A target="_blank" href="http://www.only.net/"><IMG src="play/chattingroom2_01.jpg" border=0></A></TD>
<TD width=15 background="play/chattingroom2_02.gif"></TD></TR>
<TR>
<TD background="play/chattingroom2_04.gif"></TD>
<TD width=320 height=245 bgcolor="#ffffff">
<%If musictype="asf" Or musictype="asfmtv" Then%>
<DIV>
<script language="jscript.encode">
<!--
document.write ("<OBJECT id=\"MediaPlayer\" codeBase=\"http:\/\/activex.microsoft.com\/activex\/controls\/mplayer\/en\/nsmp2inf.cab#Version=5,1,52,701\" classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" width=\"320\" height=\"245\" type=\"application/x-oleobject\" standby=\"Loading Microsoft? Windows Media? Player components...\">\n")
document.write ("<PARAM NAME=\"URL\" VALUE='" + wmvurl + "'>\n")
document.write ("<PARAM NAME=\"rate\" VALUE=\"1\">\n")
document.write ("<PARAM NAME=\"balance\" VALUE=\"0\">\n")
document.write ("<PARAM NAME=\"currentPosition\" VALUE=\"0\">\n")
document.write ("<PARAM NAME=\"defaultFrame\" VALUE=\"\">\n")
document.write ("<PARAM NAME=\"playCount\" VALUE=\"100\">\n")
document.write ("<PARAM NAME=\"autoStart\" VALUE=\"1\">\n")
document.write ("<PARAM NAME=\"currentMarker\" VALUE=\"0\">\n")
document.write ("<PARAM NAME=\"invokeURLs\" VALUE=\"-1\">\n")
document.write ("<PARAM NAME=\"baseURL\" VALUE=\"\">\n")
document.write ("<PARAM NAME=\"volume\" VALUE=\"100\">\n")
document.write ("<PARAM NAME=\"mute\" VALUE=\"0\">\n")
document.write ("<PARAM NAME=\"uiMode\" VALUE=\"none\">\n")
document.write ("<PARAM NAME=\"stretchToFit\" VALUE=\"1\">\n")
document.write ("<PARAM NAME=\"windowlessVideo\" VALUE=\"0\">\n")
document.write ("<PARAM NAME=\"enabled\" VALUE=\"-1\">\n")
document.write ("<PARAM NAME=\"enableContextMenu\" VALUE=\"0\">\n")
document.write ("<PARAM NAME=\"fullScreen\" VALUE=\"0\">\n")
document.write ("<PARAM NAME=\"SAMIStyle\" VALUE=\"\">\n")
document.write ("<PARAM NAME=\"SAMILang\" VALUE=\"\">\n")
document.write ("<PARAM NAME=\"SAMIFilename\" VALUE=\"\">\n")
document.write ("<PARAM NAME=\"captioningID\" VALUE=\"\">\n")
document.write ("<PARAM NAME=\"enableErrorDialogs\" VALUE=\"0\">\n")
document.write ("<PARAM NAME=\"_cx\" VALUE=\"8467\">\n")
document.write ("<PARAM NAME=\"_cy\" VALUE=\"8467\">\n")
document.write ("<PARAM NAME=\"AutoSize\" VALUE=\"0\">\n")
document.write ("</OBJECT>\n")
//-->
</script></DIV>
<%elseIf musictype="rm" Or musictype="rmmtv" then%>
<DIV>
<script language="jscript.encode">
<!--
document.write ("<OBJECT id=\"MediaPlayer\" codeBase=\"http:\/\/activex.microsoft.com\/activex\/controls\/mplayer\/en\/nsmp2inf.cab#Version=5,1,52,701\" classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" width=\"320\" height=\"245\" type=\"application/x-oleobject\" standby=\"Loading Microsoft? Windows Media? Player components...\">\n")
<PARAM NAME="_ExtentX" VALUE="20161">
<PARAM NAME="_ExtentY" VALUE="11959">
<PARAM NAME="AUTOSTART" VALUE="-1">
<PARAM NAME="SHUFFLE" VALUE="0">
<PARAM NAME="PREFETCH" VALUE="0">
<PARAM NAME="NOLABELS" VALUE="0">
<PARAM NAME="SRC" value="urlrm.asp?id=<%=musicid%>">
<PARAM NAME="CONTROLS" VALUE="Imagewindow">
<PARAM NAME="CONSOLE" VALUE="clip1">
<PARAM NAME="LOOP" VALUE="0">
<PARAM NAME="NUMLOOP" VALUE="0">
<PARAM NAME="CENTER" VALUE="0">
<PARAM NAME="MAINTAINASPECT" VALUE="-1">
<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">
</OBJECT>

<OBJECT name="RP2" height="0" width="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" name="RP2">
<PARAM NAME="_ExtentX" VALUE="18706">
<PARAM NAME="_ExtentY" VALUE="794">
<PARAM NAME="AUTOSTART" VALUE="-1">
<PARAM NAME="SHUFFLE" VALUE="0">
<PARAM NAME="PREFETCH" VALUE="0">
<PARAM NAME="NOLABELS" VALUE="-1">
<PARAM NAME="CONTROLS" VALUE="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="-1">
<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">
</OBJECT>
<script LANGUAGE="javaScript">
var ERR_NonePlayer="播放器提示您:您的系统中没有安装Real Player播放器,请在主页上下载。\n\nMovie播放器将关闭。";
var ERR_FileNotFind="播放器提示您:未发现你要点播的文件或服务器出错,\n\n请更换其他影片!";
var ERR_NotLocateServer="播放器提示您:无法定位Movie服务器。请更换其他影片!";
var ERR_UnkownError="播放器提示您:在线用户过多,服务器限制,请抢线或稍后观看!";
</script>
<script LANGUAGE="VBScript">
on error resume next

Sub RP1_OnBuffering(lFlags, lPercentage)
if (lPercentage=100) then
StartPlay = false
if (FirstPlay) then
FirstPlay = false
end if
exit sub
end if
End Sub

Sub RP1_OnErrorMessage(uSeverity, uRMACode, uUserCode, pUserString, pMoreInfoURL, pErrorString)
select case RP1.GetLastErrorRMACode()
case -2147221496
window.alert(ERR_FileNotFind & pErrorString)
case -2147221433,-2147221428,-2147221417,-2147217468
window.alert(ERR_NotLocateServer & pErrorString)
case else
window.alert(ERR_UnkownError & pErrorString)
end select
End Sub

Sub RP1_OnClipOpened(short_clip_name, url)
width = RP1.GetClipWidth()
height = RP1.GetClipHeight()
if width > 300 then
'window.alert(window.dialogWidth)
'window.alert(width)
window.resizeTo width, height + 150
'window.dialogWidth = width & "px"
'window.dialogHeight = height + 150 & "px"
end if
End Sub

Sub RP1_OnRButtonDown(ByVal nFlags, ByVal nX, ByVal nY)
window.alert("Wellcome to www.iered.com !")
End Sub

</script>

<script language="javascript">
RP1.SetEnableContextMenu(false);
RP1.SetWantErrors(true);
RP1.SetWantMouseEvents(true);
</script>

<%elseIf musictype="flash" then%>
<SCRIPT language="JavaScript" type="text/JavaScript" src="flashplayer.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="open.js"></script>
<%End if%></TD>
<TD background="play/chattingroom2_03.gif"></TD></TR>
<TR>
<TD background="play/chattingroom2_04.gif" height=20></TD>
<TD bgColor=#000000 height="20">
<%If musictype="rm" Or musictype="rmmtv" then%>
<OBJECT id="RP3" height="20" width="100%" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" name="RP3">
<PARAM NAME="_ExtentX" VALUE="20161">
<PARAM NAME="_ExtentY" VALUE="794">
<PARAM NAME="AUTOSTART" VALUE="-1">
<PARAM NAME="SHUFFLE" VALUE="0">
<PARAM NAME="PREFETCH" VALUE="0">
<PARAM NAME="NOLABELS" VALUE="-1">
<PARAM NAME="CONTROLS" VALUE="StatusBar">
<PARAM NAME="CONSOLE" VALUE="clip1">
<PARAM NAME="LOOP" VALUE="0">
<PARAM NAME="NUMLOOP" VALUE="0">
<PARAM NAME="CENTER" VALUE="0">
<PARAM NAME="MAINTAINASPECT" VALUE="-1">
<PARAM NAME="BACKGROUNDCOLOR" VALUE="#000000">
</OBJECT>
<%else%><TABLE
style="BORDER-LEFT-COLOR: #ffffff; BORDER-BOTTOM-COLOR: #ffffff; BORDER-TOP-COLOR: #ffffff; BORDER-RIGHT-COLOR: #ffffff"
width="100%" border=1>
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"
align=left width="13%">
<%If musictype="asf" Or musictype="asfmtv" then%>
<IMG id=statImg height=15
src="play/chattingroom_stop.gif" width=32 border=0><%else%><IMG id=statImg height=15
src="play/chattingroom_play.gif" width=32 border=0>
<%End if%></TD>
<TD id=mediaInfo
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; FONT-SIZE: 12px; BORDER-LEFT: medium none; COLOR: #89a4ff; BORDER-BOTTOM: medium none"
vAlign=bottom width="68%" align=left>影片需要缓冲...请稍候...</TD>
<TD id=mediaTime
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; FONT-SIZE: 12px; BORDER-LEFT: medium none; COLOR: #89a4ff; BORDER-BOTTOM: medium none"
vAlign=bottom align=right width="19%"></TD></TR></TBODY></TABLE>
<%End if%></TD>
<TD background="play/chattingroom2_03.gif"></TD></TR>
<TR>
<TD background="play/chattingroom2_05.gif" height=54></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=320 border=0>
<TBODY>
<TR><%If musictype="rm" Or musictype="rmmtv" then%>
<TD style="LEFT: 0px; POSITION: relative"
onclick="javascript:GetObj('pBox').style.left = (window.event.x);SetPosition(window.event.x);"
background="play/chattingroom2_07.gif" height=19 align=left>
<DIV id=pBox
style="LEFT: 5px; OVERFLOW: hidden; WIDTH: 23px; CURSOR: e-resize; POSITION: relative; TOP: 6px"><IMG
height=8 alt="移动滑块控制影片进度" src="play/chattingroom2_17.gif"
width=23></DIV></TD><%elseIf musictype="asfmtv" then%>
<TD onMouseDown="mouseDown(0)" id=pZone
style="LEFT: 0px; POSITION: relative"
background="play/chattingroom2_07.gif" height=19 align=left>
<DIV id=pBox
style="LEFT: 5px; OVERFLOW: hidden; WIDTH: 23px; CURSOR: e-resize; POSITION: relative; TOP: 6px"><IMG
height=8 alt="移动滑块控制影片进度" src="play/chattingroom2_17.gif"
width=23></DIV></TD>
<%elseIf musictype="asf" then%>
<TD onMouseDown="mouseDown(0)" id=pZone
style="LEFT: 0px; POSITION: relative"
background="play/chattingroom2_07.gif" height=19 align=left>
<DIV id=pBox
style="LEFT: 5px; OVERFLOW: hidden; WIDTH: 23px; CURSOR: e-resize; POSITION: relative; TOP: 6px"><!-- <IMG
height=8 alt="移动滑块控制影片进度" src="play/chattingroom2_17.gif"
width=23> --></DIV></TD>
<%else%>
<TD style="LEFT: 0px; POSITION: relative"
background="play/chattingroom2_07.gif" height=19 align=left>
<DIV style="LEFT: 5px; OVERFLOW: hidden; WIDTH: 23px; CURSOR: e-resize; POSITION: relative; TOP: 6px"><IMG
height=8 alt="移动滑块控制影片进度" src="play/chattingroom2_17.gif"
width=23></DIV></TD>
<%end if%></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=320 border=0>
<TBODY>
<TR>
<TD width=59 background="play/chattingroom2_08.gif"
height=21></TD>
<TD width=36>
<%If musictype="flash" then%>
<a target="flashplay" href="flashshow.asp?id=<%=musicid%>"><img height=21
alt="播放" src="play/chattingroom2_09.gif" width=36 border=0></a>
<%else%>
<IMG id=playControl <%If musictype="asf" Or musictype="asfmtv" then%> onclick=toPlay();<%elseIf musictype="rm" Or musictype="rmmtv" then%>onclick=javascript:play();<%End if%> height=21
alt="播放/暂停" src="play/chattingroom2_09.gif" width=36
border=0>
<%End if%></TD>
<TD width=34>
<%If musictype="flash" then%>
<a target="flashplay" href="flashstop.html">
<img height=21 alt="停止" src="play/chattingroom2_10.gif" width="34" border="0"></a><%else%>
<IMG <%If musictype="asf" Or musictype="asfmtv" then%> onclick="toStop();"<%elseIf musictype="rm" Or musictype="rmmtv" then%> onclick="javascript:pause();"<%End if%> height=21 alt="停止"
src="play/chattingroom2_10.gif" width=34 border=0>
<%End if%></TD>
<TD width=29><IMG <%If musictype="asf" Or musictype="asfmtv" then%> onClick="fullScreen();"<%elseIf musictype="rm" Or musictype="rmmtv" then%>onclick="if (document.RP1.GetPlayState()==3) document.RP1.SetFullScreen()"<%elseIf musictype="flash" then%>onclick="expandingWindow('flashshow.asp?id=<%=musicid%>');return false;"<%End if%> height=21 alt="全屏"
src="play/chattingroom2_11.gif" width=29 border=0></TD>
<TD width=5 background="play/chattingroom2_12.gif"></TD>
<TD width=32><IMG <%If musictype="asf" Or musictype="asfmtv" then%> id=muteControl onclick=toMute(); <%End if%> height=21
alt="静音开关" src="play/chattingroom2_13.gif" width=32
border=0></TD>
<%If musictype="asf" Or musictype="asfmtv" then%>
<TD onMouseDown="mouseDown(1)" id=vZone
style="BACKGROUND-POSITION: center 50%; LEFT: 0px; BACKGROUND-REPEAT: repeat-x; POSITION: relative"
vAlign="center" width=67
background="play/chattingroom2_14.gif"><DIV id=vBox
style="LEFT: 34px; OVERFLOW: hidden; WIDTH: 5px; CURSOR: e-resize; POSITION: relative; TOP: 4px"><IMG
height=13 alt=移动滑块控制音量大小 src="play/chattingroom2_18.gif"
width=5></DIV></TD>
<%elseIf musictype="rm" Or musictype="rmmtv" then%>
<TD style="LEFT: 0px; POSITION: relative" onClick="javascript:GetObj('vBox').style.left = (window.event.x);SetVolume(parseInt(GetObj('vBox').style.left));" vAlign=center width=67 background=play/chattingroom2_14.gif>
<DIV id=vBox style="LEFT: 34px; OVERFLOW: hidden; WIDTH: 5px; CURSOR: e-resize; POSITION: relative; TOP: 4px"><IMG height=13 alt=移动滑块控制音量大小 src="play/chattingroom2_18.gif" width=5></DIV></TD>
<%else%>
<TD style="BACKGROUND-POSITION: center 50%; LEFT: 0px; BACKGROUND-REPEAT: repeat-x; POSITION: relative"
vAlign="center" width=67
background="play/chattingroom2_14.gif"><DIV style="LEFT: 34px; OVERFLOW: hidden; WIDTH: 5px; CURSOR: e-resize; POSITION: relative; TOP: 4px"><IMG
height=13 alt=移动滑块控制音量大小 src="play/chattingroom2_18.gif"
width=5></DIV></TD>
<%end if%><TD width=58 background="play/chattingroom2_15.gif"></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD background="play/chattingroom2_16.gif" height=14></TD></TR></TBODY></TABLE></TD>
<TD background="play/chattingroom2_06.gif"></TD></TR></TBODY></TABLE>
<%If musictype="asf" Or musictype="asfmtv" then%>
<SCRIPT language=JavaScript src="Player.js"></SCRIPT>
<%End if%>
<!-- 播放器位置结束 -->

搜索更多相关主题的帖子: 音乐 asp 播放 
2006-11-05 19:43
rodney520
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2006-10-7
收藏
得分:0 
插不了本地图片要不然,让打虾看看图片我想要好一点

夜里把剑抢劫, 梦里警察跳耧 仗剑抢劫天下, 试问谁与争锋
2006-11-05 19:46
快速回复:[求助]asp中音乐播放问题播放不了
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024237 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved