realplayer.php
7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<script language="javascript" src="js/var.js"></script>
<script language="javascript" src="js/player.js"></script>
<script language="javascript" src="js/timer.js"></script>
<HTML>
<HEAD>
<TITLE><?=$r[title]?> --- 媒體播放器</TITLE>
<META HTTP-EQUIV="Expires" CONTENT="0">
<link rel="stylesheet" href="js/player.css">
<script language="javascript">
window.resizeTo( 375 , 421 );
window.moveTo( 100 , 100 );
window.focus()
</script>
<SCRIPT language=javascript>
function click() {
if (event.button==2) {
alert('對不起,您想做什麼?')
}
}
document.onmousedown=click
</SCRIPT>
<script language="javascript" src="js/rmplayer.js"></script>
<BODY id=thisbody bgcolor="#000000" topMargin=0 leftMargin=0 rightMargin=0 bottomMargin=0 style="scroll:no; overflow: hidden;" ondragstart="self.event.returnValue=false" onselectstart="self.event.returnValue=false" onmousedown="WindowMove_Start()" onmouseup="WindowMove_End()" oncontextmenu="self.event.returnValue=false" onmousemove="WindowMove()">
<object id="min" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" style="{visibility:hidden}"><param name="Command" value="Minimize"></object>
<!--播放器主界面-->
<DIV id="myplayPanel">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="362">
<TR><TD width="11"><img border="0" src="images/top_l.gif" width="11" height="37"></td><td background="images/top_bg.gif" width="340"> </TD><td background="images/top_bg.gif" NOWRAP valign="center">
</TD><td width="11"><img border="0" src="images/top_r.gif" width="11" height="37"></td>
</TR>
<TR>
<td background="images/center_bgl.gif" width="11"> </td>
<TD bgcolor="#000000" colspan="2" width="340" height="250">
<DIV id="bufimg" style="HEIGHT: 100%; POSITION: absolute; TOP: 37px; VISIBILITY: visible; WIDTH: 100%; Z-INDEX: 4;left:11px"><img border="0" src="images/bufimg.gif" width="340" height="250"></DIV>
<DIV id="MP" style="Z-INDEX: -1">
<OBJECT classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" height=250 id=Player width=340>
<param name="_ExtentX" value="8255">
<param name="_ExtentY" value="6376">
<param name="AUTOSTART" value="1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="CONTROLS" value="ImageWindow">
<param name="CONSOLE" value="one">
<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>
</DIV>
</TD>
<td background="images/center_bgr.gif" width="11"> </td>
</TR>
</table>
<!--Control Pancel Start-->
<DIV id="mycontrolPanel">
<!--------位置控制------------->
<DIV id="myadvControl"><div id="info"></div></DIV>
<DIV id="myPosBar" onmousedown="SetPos_Start()" onmousemove="SetPos()" onmouseup="SetPos_End()"><IMG alt="播放位置" border=0 src="images/control_bar.gif" width="29" style="cursor:hand" height="12">
</DIV>
<table border="0" width="362" cellspacing="0" cellpadding="0" height="17">
<tr>
<td background="images/control1.gif">
</td>
</tr>
</table>
<!--------時間顯示------------->
<table border="0" width="362" cellspacing="0" cellpadding="0" height="50" background="images/control20.gif">
<tr>
<td width="100%" height="24">
</td>
</tr>
<tr>
<td width="100%" height="26">
<img src="images/clock_l.gif" width="245" height="13"><img src="js/cb.gif" name="a" width="11" height="13"><img src="js/cb.gif" name="b" width="11" height="13"><img src="js/colon.gif" name="c" width="11" height="13"><img src="js/cb.gif" name="d" width="11" height="13"><img src="js/cb.gif" name="e" width="11" height="13"><img src="js/colon.gif" name="f" width="11" height="13"><img src="js/cb.gif" name="g" width="11" height="13"><img src="js/cb.gif" name="h" width="11" height="13">
</td>
</tr>
</table>
<!--------聲音控制------------->
<DIV id="myVolBar" onmousedown="SetVol_Start()" onmousemove="SetVol()" onmouseup="SetVol_End()"><IMG alt="音量調節" border=0 src="images/bar.gif" width="11" height="8" style="cursor:hand"></DIV>
<table border="0" width="362" cellspacing="0" cellpadding="0">
<tr>
<td><img border="0" src="images/control3_01.gif" width="42" height="35"></td>
<td><img border="0" src="images/control3_02.gif" width="23" height="35" title="播放" onclick="Play()" name="playpause" style="cursor:hand"></td>
<td><img border="0" src="images/control3_03.gif" width="23" height="35" title="暫停" onclick="Pause()" name="playpause" style="cursor:hand"></td>
<td><img border="0" src="images/control3_04.gif" width="24" height="35" name="stop" title="停止" onclick="Stop()" style="cursor:hand"></td>
<td><img border="0" src="images/control3_05.gif" width="5" height="35"></td>
<td><img border="0" src="images/control3_06.gif" width="23" height="35" alt="開始位置" title="開始位置" onclick="SetPosition(0)" style="cursor:hand"></td>
<td><img border="0" src="images/control3_07.gif" width="24" height="35" alt="結束位置" title="結束位置" onclick="SetPosition(-1)" style="cursor:hand"></td>
<td><img border="0" src="images/control3_08.gif" width="5" height="35"></td>
<td><img border="0" src="images/control3_09.gif" width="24" height="35" name="fullscreen" alt="全屏幕" title="全屏幕" onClick="FullScreen()" style="cursor:hand"></td>
<td><img border="0" src="images/control3_10.gif" width="169" height="35"></td>
</tr>
</table>
<!--Control Panel End-->
<!--------高級控制------------->
<DIV id="myadvPanel">
</DIV>
<!--panel table end-->
<!--事件處理-->
<SCRIPT language="vbscript">
sub Player_OnBuffering(Flags,PercentComplete)
strMsg=" 正在緩衝……" & PercentComplete & "%"
info.innerHTML=strMsg
call ShowBuffering(PercentComplete <100)
end sub
</script>
<SCRIPT language="vbscript">
sub Player_OnContacting(HostName)
info.innerHTML= "正在連接 "& HostName
end sub
</script>
<SCRIPT language="vbscript">
sub Player_OnErrorMessage(Sevrity,RMACode,UserCode,MsgText,MoreURL)
info.innerHTML= "發生錯誤: "& MsgText
msgbox MsgText
end sub
</script>
<SCRIPT FOR="window" EVENT="onresize()" language="javascript">
document.all.Player.width=document.body.clientWidth-20;
document.all.Player.height=document.all.Player.width*0.75;
</SCRIPT>
<script language="javascript">document.all.Player.SetSource('<?=$url?>');</script>
<script language="javascript">
StreamMedia();
StreamMonitor();
</script>
</body>
</html>