免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3088 | 回复: 8
打印 上一主题 下一主题

PHP内嵌播放器求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-14 21:38 |只看该作者 |倒序浏览
这个是PHP音乐点播程序的WINDOWS MEDIA PLAYER内嵌代码,支持http://ip/*.mp3和mms://ip/*.mp3,我现在想把它修改成内嵌realplayer的,请教大家一下,如何改,我自己改了老是播放不了
下面给出代码

论坛徽章:
0
2 [报告]
发表于 2004-12-14 21:41 |只看该作者

PHP内嵌播放器求助

onlineplayer.php

<SCRIPT language=javascript>;
function PlayIt(URL){
lbsong=window.open(URL,'lbsong', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=420,height=227,top=210,left=158');
}
if (window.name!='lbsong') {
  top.location="$weburl";
  PlayIt("./Yxplay.php?id=$id";
}
</SCRIPT>;
<html>;
<head>;
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">;
<meta name=author content="Z.J.Studio">;
<title>;$webtitle - 在线试听</title>;
<style type="text/css">;
<!--
a{text-decoration:none;font-size:9pt;color:#000000}
a:visited{text-decoration:none;color:#000000}
a:hover{color:#0000FF;text-decoration:underline}
p{font-size:9pt;line-height:12pt;}
td{font-size:9pt;line-height:12pt;}
-->;
</style>;
<script language="javascript">;
function document.onkeydown()
</script>;
</head>;
<body scroll=no topmargin="0" leftmargin="0" oncontextmenu="self.event.returnValue=false">;
<table border="0" cellpadding="0" cellspacing="0" width="420">;
<tr>;
<td width="100%" bgcolor="#CEEFFF" align="center">;<img border="0" src="images/online_player.gif" width="420" height="227">;</td>;
</tr>;
</table>;
<div id="player" style="position:absolute; width:420px; height:100px; z-index:1; left: 0px; top: 163px">;<table border="0" cellpadding="0" cellspacing="0" width="420">;
<tr>;
<td width="100%" align="center">;
<OBJECT ID="mPlayer1" WIDTH=100% HEIGHT="64" CLASSID="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">;
    <ARAM NAME="URL" VALUE="Yxwma.php?code=$passcode&idlist=$id&s=$session[sessionhash]">;
    <ARAM NAME="rate" VALUE="1">;
    <ARAM NAME="balance" VALUE="0">;
    <ARAM NAME="currentPosition" VALUE="0">;
    <ARAM NAME="defaultFrame" VALUE="">;
    <ARAM NAME="layCount" VALUE="10">;
    <param name='DisplayMode' value='0'>;
    <param name='PreviewMode' value='0'>;
    <param name='DisplayForeColor' value='16777215'>;
    <param name='ShowCaptioning' value='0'>;
    <param name='ShowControls' value='0'>;
    <param name='ShowAudioControls' value='0'>;
    <param name='ShowDisplay' value='0'>;
    <param name='ShowGotoBar' value='0'>;
    <param name='ShowPositionControls' value='0'>;
    <param name='ShowStatusBar' value='0'>;
    <param name='ShowTracker' value='0'>;
    <ARAM NAME="autoStart" VALUE="-1">;
    <param name="AutoRewind" value="-1">;
    <ARAM NAME="currentMarker" VALUE="0">;
    <ARAM NAME="invokeURLs" VALUE="-1">;
    <PARAM NAME="baseURL" VALUE="">;
    <PARAM NAME="volume" VALUE="$playerVolume">;
    <PARAM NAME="mute" VALUE="0">;
    <PARAM NAME="uiMode" VALUE="full">;
    <PARAM NAME="stretchToFit" VALUE="0">;
    <PARAM NAME="windowlessVideo" VALUE="0">;
    <PARAM NAME="enabled" VALUE="1">;
    <param name='EnableFullScreenControls' value='0'>;
    <param name='EnableTracker' value='1'>;
    <param name='EnablePositionControls' value='0'>;
    <PARAM NAME="enableContextMenu" VALUE="0">;
    <param name='SelectionStart' value='0'>;
    <param name='SelectionEnd' value='0'>;
    <PARAM NAME="fullScreen" VALUE="0">;
    <PARAM NAME="SAMIStyle" VALUE="">;
    <PARAM NAME="SAMILang" VALUE="">;
    <PARAM NAME="SAMIFilename" VALUE="">;
    <PARAM NAME="captioningID" VALUE="">;
</OBJECT>;
</td>;
</table>;</div>;
<div id="newalbum" style="position:absolute; width:10px; height:10px; z-index:2; left: 245px; top: 201px">;</div>;
</body>;
</html>;

论坛徽章:
0
3 [报告]
发表于 2004-12-14 21:42 |只看该作者

PHP内嵌播放器求助

playlist_play.php

<SCRIPT language=javascript>;
if (window.name!='lbsong') {
  top.location="";
}
</SCRIPT>;
<html>;
<head>;
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">;
<meta name=author content="Z.J.Studio">;
<title>;$webtitle - 在线试听</title>;
<style type="text/css">;
<!--
a{text-decoration:none;font-size:9pt;color:#000000}
a:visited{text-decoration:none;color:#000000}
a:hover{color:#0000FF;text-decoration:underline}
p{font-size:9pt;line-height:12pt;}
td{font-size:9pt;line-height:12pt;}
-->;
</style>;
</head>;
<body scroll=no topmargin="0" leftmargin="0" oncontextmenu="self.event.returnValue=false">;
<table border="0" cellpadding="0" cellspacing="0" width="420">;
<tr>;
<td width="100%" bgcolor="#CEEFFF" align="center">;<img border="0" src="images/online_player.gif" width="420" height="227">;</td>;
</tr>;
</table>;
<div id="player" style="position:absolute; width:420px; height:100px; z-index:1; left: 0px; top: 163px">;<table border="0" cellpadding="0" cellspacing="0" width="420">;
<tr>;
<td width="100%" align="center">;
<object classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="300" height="100">;
  <param name="_ExtentX" value="7938">;
  <param name="_ExtentY" value="2646">;
  <param name="AUTOSTART" value="0">;
  <param name="SHUFFLE" value="0">;
  <param name="REFETCH" value="0">;
  <param name="NOLABELS" value="0">;
  <param name="SRC" value="./Yxwma.php?code=$passcode&idlist=$id&s=$session[sessionhash]">;
  <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">;
</object>;
</td>;
</table>;</div>;
<div id="newalbum" style="position:absolute; width:10px; height:10px; z-index:2; left: 245px; top: 201px">;</div>;
</body>;
</html>;

论坛徽章:
0
4 [报告]
发表于 2004-12-16 09:13 |只看该作者

PHP内嵌播放器求助

现在我调试发现,改成real后,是 <param name="SRC" value=传递数据出错,请大家帮我分析下是什么原因

论坛徽章:
0
5 [报告]
发表于 2004-12-17 10:50 |只看该作者

PHP内嵌播放器求助

播放器跟PHP有什麽關係呀,和HTML有關係

论坛徽章:
0
6 [报告]
发表于 2004-12-17 16:13 |只看该作者

PHP内嵌播放器求助

现在就是在html有问题,我也解决不了了,请大家帮忙

论坛徽章:
0
7 [报告]
发表于 2004-12-25 01:55 |只看该作者

PHP内嵌播放器求助

我做了个例子

http://npower.vicp.net/mp3.asp

<%
id = request("id"
%>;
<body BODY leftMargin=0 topMargin=0>;
<title>;<%=id%>;</title>;
<object classid='clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA' width="300"  height="100">;
<param name='_ExtentX' value='7938'>;
<param name='_ExtentY' value='2646'>;
<param name='AUTOSTART' value='1'>;
<param name='SHUFFLE' value='0'>;
<param name='PREFETCH' value='0'>;
<param name='NOLABELS' value='0'>;
<param name='SRC' value='<%=id%>;'>;
<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'>;
</object>;

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
8 [报告]
发表于 2004-12-27 14:54 |只看该作者

PHP内嵌播放器求助

你使用frontpage或者dw,插入一个realplay的东西,然后看源代码

论坛徽章:
0
9 [报告]
发表于 2004-12-27 21:02 |只看该作者

PHP内嵌播放器求助

原帖由 "jsqyy" 发表:

<param name="SRC" value="./Yxwma.php?code=$passcode&idlist=$id&s=$session[sessionhash]">;     

大哥你是新手吗?否则怎么会犯这种错误?看错误提示:
原帖由 "jsqyy" 发表:

现在我调试发现,改成real后,是 <param name="SRC" value=传递数据出错,请大家帮我分析下是什么原因
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP