-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
140 lines (135 loc) · 6.5 KB
/
index.php
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
<?php
$ROOTDIR='.';
require("$ROOTDIR/base.php");
$referer = $_SERVER['HTTP_REFERER'];
$i = strrpos($referer, '/');
$referer = substr($referer, 0, $i);
$referer = substr(strrchr($referer, '/'), 1);
$referer = addcslashes($referer, "\0..\37'\\");
sendContentType();
openDocument();
?>
<script type="text/javascript">
//<![CDATA[
window.onload = function() {
menuInit();
initVideo();
registerKeyEventListener();
setDescr();
initApp();
nameselect('<?php echo $referer; ?>');
document.getElementById('relid').innerHTML = releaseinfo;
};
function nameselect(snam) {
if (!snam) return;
for (var i=0; i<opts.length; i++) {
var check = opts[i].getAttribute('name');
if (check==snam) {
menuSelect(i);
setDescr();
break;
}
}
}
function handleKeyCode(kc) {
if (kc==VK_UP) {
menuSelect(selected-1);
setDescr();
return true;
} else if (kc==VK_DOWN) {
menuSelect(selected+1);
setDescr();
return true;
} else if (kc==VK_LEFT){
menuSelect(selected-6);
setDescr();
return true;
} else if (kc==VK_RIGHT){
menuSelect(selected+6);
setDescr();
return true;
} else if (kc==VK_ENTER) {
var liid = opts[selected].getAttribute('name');
if (liid=='exit') {
closeApp();
} else {
document.location.href = liid+'/';
}
return true;
} else if (kc==VK_0) {
closeApp();
return true;
} else if (kc==VK_5) {
document.location.href = 'http://itv.mit-xperts.com/';
}
return false;
}
function setDescr() {
document.getElementById('descr').innerHTML = opts[selected].getAttribute('descr');
}
function closeApp() {
try {
var app = document.getElementById('appmgr').getOwnerApplication(document);
app.destroyApplication();
return;
} catch (e) {
alert('Cannot destroy application');
}
}
//]]>
</script>
</head><body>
<?php
echo videoObject();
echo appmgrObject();
?>
<div style="left: 0px; top: 0px; width: 1280px; height: 720px; background-color: #132d48;" />
<div class="txtdiv txtlg" style="left: 111px; top: 60px; width: 500px; height: 30px;">HbbTV App Framework</div>
<div class="txtdiv" style="left: 111px; top: 640px; width: 500px; height: 30px;">Testsuite release: <span id="relid"></span></div>
<div style="left: 690px; top: 56px; width: 590px; height: 130px; background-color: #ffffff;">
<div class="txtdiv" style="left: 10px; top: 4px; width: 500px; height: 30px; color: #000000;">HBBTV testsuite project initiated/maintained by:</div>
<div class="imgdiv" style="left: 10px; top: 34px; width: 356px; height: 44px; background-image: url(logo.png);"></div>
</div>
<div class="txtdiv" style="left: 700px; top: 200px; width: 450px; height: 500px;"><u>Instructions:</u><br />
Please select the desired test using the cursor keys, then press OK. After that, test-specific instructions will appear. More information is available under "About / Imprint".<br />
In case you have questions and/or comments, you can reach us at info @ mit-xperts.com<br /><br />
<u>Test description:</u><br />
<span id="descr"> </span>
</div>
<ul id="menu" class="menu" style="left: 100px; top: 100px;">
<!--<li name="about" descr="Displays more information about this testsuite (this is no test).">About / Imprint</li>
<li name="channels" descr="Performs channel operations on the video/broadcast object.">Get and set channel</li>
<li name="channellist" descr="Accesses the ChannelList class.">Channel list</li>-->
<li name="videoscale" descr="Exchange the video object on the page, switch between broadcast and streaming video. For both, scale the video object.">Video swapping and scaling</li>
<li name="videocontrol" descr="Sets the play speed and play position on a streaming video.">Video controls</li>
<li name="playerevents" descr="Checks if streaming video playback sends correect events.">Streaming video playback events</li>
<li name="videoformats" descr="Check whether videos from various applications run on your device.">Streaming video/audio formats</li>
<!--<li name="videocomponents" descr="Retrieval of audio/video/subtitle components, as well as selecting and unselecting them.">AVComponents in video/broadcast</li>-->
<li name="dolby" descr="MPEG-DASH + AC3 + audio component selection + DRM tests.">DOLBY video format / AVComponents</li>
<!--<li name="memoryaudio" descr="Playback audio from memory (for instant playback, see OIPF DAE 7.14.10).">Memory audio</li>-->
<!--<li name="videobackground" descr="Broadcast video in background without own video object.">Broadcast in background</li>-->
<!--<li name="appmanager" descr="Start applications, destroy application.">Application manager</li>-->
<li name="lgappmanager" descr="Start applications, destroy application.">LG Application manager</li>
<!--<li name="eitevent" descr="Retrieve EIT events.">EIT events</li>-->
<li name="keycodes" descr="Check for correctly defined key codes and key events.">Key codes / key events</li>
<li name="keyset" descr="Set keyset mask for user-input keys.">Keyset mask</li>
<li name="keypress" descr="Check whether keypress event is sent for non-unicode characters.">Keypress events</li>
<li name="capabilities" descr="Check the application/oipfCapabilities object.">OIPF Capabilities</li>
<li name="configuration" descr="Check the application/oipfConfiguration object.">OIPF Configuration</li>
<!--<li name="parentalcontrol" descr="Check the application/oipfParentalControlManager object.">OIPF Parental Control</li>-->
<li name="navigatordebug" descr="Check access to the Navigator class and the Debug print API.">Navigator and Debug</li>
<li name="fontrendering" descr="Check whether the device performs correct font rendering.">Font rendering</li>
<!--<li name="clientssl" descr="Check support for client SSL certificates.">Client SSL certificate</li>-->
<li name="cookies" descr="Store and read cookies in JavaScript.">Cookies</li>
<li name="useragent" descr="Validate user agent.">User agent</li>
<!--<li name="datetime" descr="Check whether box has correct date and time.">Date and time</li>-->
<li name="animation" descr="Check the performance of a Set-Top-Box graphics renderer.">Animation</li>
<!--<li name="animgif" descr="Check animated GIF.">Animated GIF</li>
<li name="streamevent" descr="Receive StreamEvents.">StreamEvent</li>
<li name="dvburl" descr="Access DSM-CC via dvb:// URLs.">dvb URLs</li>-->
<li name="links" descr="Test links">Test Links</li>
<li name="exit" descr="End this application and return to ARD Start.">>>>Exit application<<<</li>
</ul>
</object>
</body>
</html>