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
145
146
147
|
<?php require_once('init.php'); ?>
<table id="header" width="<?php printf('%dpx', $WIDTH); ?>">
<tr>
<td align='left' width='23%'>
<?php
switch ($LANG) {
case 'orig': {
echo " <span class='selected'>DT/EN</span>";
echo " <span><a href='$URL_EN'>EN</a></span>";
break;
}
case 'en': {
echo " <span><a href='$URL_ORIG'>DT/EN</a></span>";
echo " <span class='selected'>EN</span>";
break;
}
}
?>
</td>
<td align='center' width='30%'>
<?php
switch($MODE) {
case 'html5': {
echo " <span class='selected'>HTML5</span>";
echo " <span><a href='$URL_FLASH'>FLASH</a></span>";
break;
}
case 'flash': {
echo " <span><a href='$URL_HTML5'>HTML5</a></span>";
echo " <span class='selected'>FLASH</span>";
break;
}
}
?>
</td>
<td align='right' width='47%'>
<?php
switch($PROFILE) {
case 'high': {
echo " <span class='selected'>high</span>";
if ( isset($EMBED) && $EMBED >= 2 ) {
echo " <span><a href='$URL_MEDIUM' target='_parent'>medium</a></span>";
} else {
echo " <span><a href='$URL_MEDIUM'>medium</a></span>";
}
if ( isset($EMBED) && $EMBED >= 3 ) {
echo " <span><a href='$URL_LOW' target='_parent'>low</a></span>";
} else {
echo " <span><a href='$URL_LOW'>low</a></span>";
}
echo " <span><a href='$URL_MINI'>mini</a></span>";
break;
}
case 'medium': {
if ( isset($EMBED) ) {
echo " <span><a href='$URL_HIGH' target='_parent'>high</a></span>";
} else {
echo " <span><a href='$URL_HIGH'>high</a></span>";
}
echo " <span class='selected'>medium</span>";
if ( isset($EMBED) && $EMBED >= 3 ) {
echo " <span><a href='$URL_LOW' target='_parent'>low</a></span>";
} else {
echo " <span><a href='$URL_LOW'>low</a></span>";
}
echo " <span><a href='$URL_MINI'>mini</a></span>";
break;
}
case 'low': {
if ( isset($EMBED) ) {
echo " <span><a href='$URL_HIGH' target='_parent'>high</a></span>";
} else {
echo " <span><a href='$URL_HIGH'>high</a></span>";
}
if ( isset($EMBED) && $EMBED >= 2 ) {
echo " <span><a href='$URL_MEDIUM' target='_parent'>medium</a></span>";
} else {
echo " <span><a href='$URL_MEDIUM'>medium</a></span>";
}
echo " <span class='selected'>low</span>";
echo " <span><a href='$URL_MINI'>mini</a></span>";
break;
}
case 'mini': {
if ( isset($EMBED) ) {
echo " <span><a href='$URL_HIGH' target='_parent'>high</a></span>";
} else {
echo " <span><a href='$URL_HIGH'>high</a></span>";
}
if ( isset($EMBED) && $EMBED >= 2 ) {
echo " <span><a href='$URL_MEDIUM' target='_parent'>medium</a></span>";
} else {
echo " <span><a href='$URL_MEDIUM'>medium</a></span>";
}
if ( isset($EMBED) && $EMBED >= 3 ) {
echo " <span><a href='$URL_LOW' target='_parent'>low</a></span>";
} else {
echo " <span><a href='$URL_LOW'>low</a></span>";
}
echo " <span class='selected'>mini</span>";
break;
}
}
?>
</td>
</tr>
</table>
<?php if ($MODE == "flash") { ?>
<script type="text/javascript" src="/flowplayer/flowplayer-3.2.6.min.js"></script>
<div id="player" style="<?php printf('display:block;width:%dpx;height:%dpx', $WIDTH, $HEIGHT); ?>"></div>
<script>flowplayer("player", "/flowplayer/flowplayer-3.2.7.swf", {
clip: {
url: "<?php echo $STREAM_URL_FLASH; ?>",
autoPlay: true,
autoBuffering: true,
bufferLength: 5,
live: true,
scaling: "fit"
},
plugins: {
controls: {
url: "/flowplayer/flowplayer.controls-3.2.5.swf",
time: false,
}
}
} );
</script>
<?php } else { ?>
<video width=<?php echo $WIDTH; ?> height=<?php echo $HEIGHT; ?> autoplay controls>
<source src="<?php echo $STREAM_URL_WEBM; ?>" type="video/webm" />
<source src="<?php echo $STREAM_URL_HLS; ?>" type="application/x-mpegURL" />
</video>
<?php } ?>
<table id="footer" width="<?php printf('%dpx', $WIDTH); ?>">
<tr>
<td align='right'>
<h2>Direct Link(s):</h2>
</td>
<td align='left'>
<?php if ($MODE == "flash") {
echo " $STREAM_URL_FLASH";
} else {
echo " $STREAM_URL_WEBM<br />";
echo " $STREAM_URL_HLS";
} ?>
</td>
</table>
|