demo.html
25.0 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
<!--
/*
* (C) Copyright 2011 Adobe Systems Incorporated. All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
* terms of the Adobe license agreement accompanying it. If you have received this file from a
* source other than Adobe, then your use, modification, or distribution of it requires the prior
* written permission of Adobe.
* THIS CODE AND INFORMATION IS PROVIDED "AS-IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
* THIS CODE IS NOT SUPPORTED BY Adobe Systems Incorporated.
*
*/
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>LiveAssistant Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
td img {display: block;}body {
background-color: #191919;
}
a:link {
text-decoration: none;
color: #F00;
}
a:hover {
text-decoration: underline;
color: #F00;
}
a:visited {
text-decoration: none;
color: #F00;
}
a:active {
text-decoration: none;
color: #F00;
}
.style22 {
color: #666666;
}
.style23 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style31 {
font-family: "Arial";
color: #999999;
font-size: 12px;
font-weight: bold;
}
.style34 {
font-family: "Arial";
}
.style24 { font-size: 11px;
color: #999999;
font-family: Arial, Helvetica, sans-serif;
}
.style62 {
font-size: 12px; color: #999999;
font-family: "myriad Pro";
}
.style67 {
font-family: "myriad Pro";
color: #999999;
font-size: 12px;
font-weight: bold;
}
.style69 {
font-family: "Arial";
color: #999999;
font-weight: bold;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
color: #999999;
font-size: 14px;
font-weight: bold;
}
.style3 {
font-family: "Arial";
font-size: 12px;
line-height: normal;
height: 10px;
}
.style71 {
font-family: "myriad Pro";
}
.style73 {
font-family: Arial;
color: #999999;
font-size: 12px;
font-weight: bold;
}
.style74 {
font-size: 12px;
color: #999999;
font-family: Arial;
}
.style75 {
font-family: Arial;
color: #CCC;
font-size: 12px;
font-weight: bold;
}
.style76 {
font-size: 12px;
font-family: Arial;
color: #FF0000;
}
.style81 {
font-family: Arial;
}
.style82 {
color: #999999;
font-size: 12px;
}
.style83 {
font-size: 12px;
font-weight: bold;
color: #999999;
}
</style>
<!-- functionality -->
<script type="text/javascript" src="scripts/swfobject.js"></script>
<script language="javascript">
var queryParameters = new Array();
var flashVars = "";
var tag = "";
var url = "";
var output;
var wsState = "idle";
var websocket;
function testWebSocket()
{
websocket = new WebSocket(wsUri);
websocket.onopen = function(evt) { onOpen(evt) };
websocket.onclose = function(evt) { onClose(evt) };
websocket.onmessage = function(evt) { onMessage(evt) };
websocket.onerror = function(evt) { onError(evt) };
}
function onOpen(evt)
{
writeToScreen("websocket connected");
wsState = "connected";
// doSend("get_mic_vol");
}
function onClose(evt)
{
writeToScreen("DISCONNECTED");
wsState = "idle";
}
function onMessage(evt)
{
if(typeof(evt.data)=="string"){
writeToScreen('<span style="color: blue;">receive string</span>');
}
else{
writeToScreen('<span style="color: blue;">receive binary</span>');
var reader = new FileReader();
reader.onload = function(evt){
if(evt.target.readyState == FileReader.DONE){
var dv = new DataView(evt.target.result);
writeToScreen('<span style="color: blue;">receive string ' + dv.byteLength +'</span>');
var result = dv.getUint16(0, true);
var byte_order = dv.getUint8(2, true);
var data_len = dv.getUint32(4, true);
if(result == 83){
if(data_len > 4){
var cam_num = dv.getUint32(8, true);
var offset = 12;
for(var i=0;i<cam_num; i++){
var cam_name_len = dv.getUint32(offset, true);
offset += 4;
var cam_name = new Uint8Array(evt.target.result, offset , cam_name_len - 1);
offset += cam_name_len;
var data_sting = new TextDecoder("utf-8").decode(cam_name);
writeToScreen('<span style="color: blue;">Camera: ' + i + " " + data_sting + ' </span>');
}
}
}
else if(53 == result){
if(data_len > 4){
var mic_num = dv.getUint32(8, true);
var offset = 12;
for(var i=0;i<mic_num; i++){
var mic_name_len = dv.getUint32(offset, true);
offset += 4;
var mic_name = new Uint8Array(evt.target.result, offset , mic_name_len - 1);
offset += mic_name_len;
var data_sting = new TextDecoder("utf-8").decode(mic_name);
writeToScreen('<span style="color: blue;">MIC: ' + i + " " + data_sting + ' </span>');
}
}
}
else{
var data_sting = new TextDecoder("utf-8").decode(data);
writeToScreen('<span style="color: blue;">RESPONSE: ' + data_sting + ' </span>');
}
}
}
reader.readAsArrayBuffer(evt.data);
}
}
function onError(evt)
{
writeToScreen('<span style="color: red;">ERROR:</span> ' + evt.data);
}
function doSendWSCmd(wsCmd)
{
writeToScreen("SENT: " + wsCmd.name);
var cmd_buf_len = 2 + 1*2 + 4 + wsCmd.data_len;
var buffer = new ArrayBuffer(cmd_buf_len);
var cmd = new Uint16Array(buffer, 0, 1);
var byte_order = new Uint8Array(buffer, 2, 1);
var data_len = new Uint32Array(buffer, 4, 1);
cmd[0] = wsCmd.type;
byte_order[0] = 0;
data_len[0] = wsCmd.data_len;
if(wsCmd.data_len > 0){
var data_buf = new Uint8Array(buffer, 8, wsCmd.data_len);
for(var i=0;i< wsCmd.data_len; i++){
data_buf[i] = wsCmd.data[i];
}
}
websocket.send(buffer);
}
function onTestClick(obj)
{
writeToScreen(obj.id);
var cmd = new Object();
cmd.data_len = 0;
cmd.data = "";
cmd.name = obj.id;
if(obj.id == "ss_start"){
cmd.type = 6;
}
else if(obj.id == "ss_stop"){
cmd.type = 7;
}
else if(obj.id == "get_mic"){
cmd.type = 26;
}
else if(obj.id == "get_cam"){
cmd.type = 41;
}
doSendWSCmd(cmd);
}
function writeToScreen(message)
{
var pre = document.createElement("p");
pre.style.wordWrap = "break-word";
pre.className = "style75";
pre.innerHTML = message;
output.appendChild(pre);
}
window.onload = function ()
{
output = document.getElementById("output");
document.getElementById( 'websocketURL' ).value = "ws://127.0.0.1:8090";
document.getElementById( 'inputURL' ).value = queryParameters['source'];
document.getElementById('embedField').innerHTML = tag;
for(var i=1 ; i<=10;i++)
{
var ids = String("sel"+i.toString());
document.getElementById( ids ).style.visibility = "hidden";
document.getElementById( ids ).className = "style76";
}
// mark the entry for that index
if(queryParameters['idx'] != "")
{
document.getElementById("td" + queryParameters['idx'] ).className = "style75";
document.getElementById("sel" + queryParameters['idx'] ).style.visibility = "visible";
}
}
function initialise()
{
function getUrlParam( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return unescape( results[1] );
}
queryParameters['source'] = getUrlParam('source');
queryParameters['type'] = getUrlParam('type');
queryParameters['idx'] = getUrlParam('idx');
if( queryParameters['source'] == "" )
queryParameters['source'] = "rtmp://localhost/live/ss";
if( queryParameters['type'] == "" )
queryParameters['type'] = "recorded";
if( queryParameters['idx'] == "" )
queryParameters['idx'] = "2";
flashVars += "&src=";
flashVars += queryParameters['source'];
flashVars += "&autoHideControlBar=";
flashVars += unescape("true");
flashVars += "&streamType=";
flashVars += queryParameters['type'];
flashVars += "&autoPlay=";
flashVars += unescape("true");
flashVars += "&verbose=";
flashVars += "true";
var soFlashVars = {
src: queryParameters['source'],
streamType: queryParameters['type'],
autoPlay: "true",
controlBarAutoHide: "true",
controlBarPosition: "bottom"
};
tag = "<object width='640' height='377' id='StrobeMediaPlayback' name='StrobeMediaPlayback' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ><param name='movie' value='swfs/StrobeMediaPlayback.swf' /> <param name='quality' value='high' /> <param name='bgcolor' value='#000000' /> <param name='allowfullscreen' value='true' /> <param name='flashvars' value= '"+
flashVars+"'/><embed src='swfs/StrobeMediaPlayback.swf' width='640' height='377' id='StrobeMediaPlayback' quality='high' bgcolor='#000000' name='StrobeMediaPlayback' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer' flashvars='"+ flashVars +"' type='application/x-shockwave-flash'> </embed></object>";
<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
var swfVersionStr = "10.3.0";
<!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
var xiSwfUrlStr = "swfs/playerProductInstall.swf";
var params = {};
params.quality = "high";
params.bgcolor = "#000000";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
var attributes = {};
attributes.id = "StrobeMediaPlayback";
attributes.name = "StrobeMediaPlayback";
attributes.align = "middle";
swfobject.embedSWF("swfs/StrobeMediaPlayback.swf", "flashContent", "640", "377", swfVersionStr, xiSwfUrlStr, soFlashVars, params, attributes);
<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
swfobject.createCSS("#flashContent", "display:block;text-align:left;");
}
function playStream()
{
var url = "source=" + document.getElementById('inputURL').value;
var type;
if(document.getElementById('vodCheckbox').checked==true)
type="vod";
else
type="live";
url += ("&type=" + type);
document.getElementById('playBtn').href="demo.html?" + url;
}
function checkbox(type)
{
if(type=="vod")
{
if(document.getElementById('liveCheckbox').checked==true)
{
document.getElementById('liveCheckbox').checked=false;
}
}
if(type=="live")
{
if(document.getElementById('vodCheckbox').checked==true)
{
document.getElementById('vodCheckbox').checked=false;
}
}
}
function connectLiveServ()
{
var url = document.getElementById('websocketURL').value;
if( wsState == "idle"){
wsState = "connecting";
writeToScreen("connecting " + url);
websocket = new WebSocket(url);
websocket.onopen = function(evt) { onOpen(evt) };
websocket.onclose = function(evt) { onClose(evt) };
websocket.onmessage = function(evt) { onMessage(evt) };
websocket.onerror = function(evt) { onError(evt) };
}
}
function disconnectLiveServ()
{
if( wsState == "connected"){
wsState = "closing";
websocket.close();
}
}
function clearOutput()
{
output.innerHTML = "";
}
initialise();
</script>
</head>
<body>
<table width="100" height="" border="0" align="left" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="080715_fms_splash_fireworks.png" fwbase="index.gif" fwstyle="Dreamweaver" fwdocid = "1526025482" fwnested="0" -->
<tr><td width="41"><img src="images/spacer.gif" width="41" height="1" border="0" alt="" /></td>
<td width="3"><img src="images/spacer.gif" width="3" height="1" border="0" alt="" /></td>
<td width="647"><img src="images/spacer.gif" width="636" height="1" border="0" alt="" /></td>
<td width="361"><img src="images/spacer.gif" width="358" height="1" border="0" alt="" /></td>
<td width="44"><img src="images/spacer.gif" width="43" height="1" border="0" alt="" /></td>
</tr>
<tr valign="top">
<td rowspan="4" bgcolor="#191919"><img src="images/spacer.gif" width="55" height="50" /></td>
<td rowspan="4"></td>
<td height="327" colspan="3" bgcolor="#191919">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="61" colspan="4" bgcolor="#191919"><table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="93%"><table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" align="left" bgcolor="#191919"><img src="images/canvas.gif" alt="" name="index_r4_c3" width="1000" height="39" border="0" id="index_r4_c3"/></td>
</tr>
<tr>
<td colspan="4" align="left" bgcolor="#191919"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="64%"><table width="65%" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- Here goes the StrobeMediaPlayback -->
<td valign="top">
<!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough
JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
when JavaScript is disabled.
-->
<div id="flashContent">
<p>To view this page ensure that Adobe Flash Player version 10.3.0 or greater is installed.</p>
<script type="text/javascript">
var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
</script>
</div>
<noscript>
<a href="http://www.adobe.com/go/getflashplayer/" style="color:black"><img src="images/ERROR_getFlashPlayer.gif" width="640" height="377" /></a>
</noscript>
</td>
</tr>
</table>
</td>
<td width="36%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="359" height="186" background="images/upperright_03.gif"><table width="358" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td width="323"><span class="style75">click on following buttons to test liveserver method</span></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="ss_start" onclick="onTestClick(this)">ss_start</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="ss_stop" onclick="javascript:onTestClick(this);">ss_stop</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="ds_start" onclick="javascript:onTestClick(this);">ds_start</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="ds_stop" onclick="javascript:onTestClick(this);">ds_stop</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="get_mic" onclick="javascript:onTestClick(this);">get_mic</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="aud_start" onclick="javascript:onTestClick(this);">aud_start</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="aud_stop" onclick="javascript:onTestClick(this);">aud_stop</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="mov_start" onclick="javascript:onTestClick(this);">mov_start</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="mov_stop" onclick="javascript:onTestClick(this);">mov_stop</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="get_cam" onclick="javascript:onTestClick(this);">get_cam</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="cam_start" onclick="javascript:onTestClick(this);">cam_start</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="cam_stop" onclick="javascript:onTestClick(this);">cam_stop</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="start_push" onclick="javascript:onTestClick(this);">start_push</button></td>
</tr>
<tr>
<td width="35" colspan="2"><img src="images/spacer.gif" width="20" height="10" /></td>
<td colspan="3"><button type="button" id="stop_push" onclick="javascript:onTestClick(this);">stop_push</button></td>
</tr>
</table></td>
</tr>
</td>
</tr>
</tr>
</table></td>
</tr>
</table></td>
<td width="7%"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#191919"><table width="100" border="0" align="left" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="080715_fms_splash_fireworks.png" fwbase="index.gif" fwstyle="Dreamweaver" fwdocid = "1526025482" fwnested="0" -->
<tr>
<td colspan="3" valign="top"><img src="images/spacer.gif" width="55" height="40" /></td>
</tr>
<tr>
<td colspan="3" valign="top"><table width="87%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="style69">STREAM YOUR OWN VIDEO</span></td>
</tr>
<tr>
<td bgcolor="#666666"><img src="images/spacer.gif" width="20" height="3" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="55" height="10" /></td>
</tr>
<tr>
<td><table width="1000" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="8%"><table width="86" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><span class="style73">STREAM URL:</span></td>
</tr>
</table></td>
<td align="left"></td>
<td align="left"><input name="inputURL" type="text" id="inputURL" size="80" maxlength="80" /></td>
<td width="42%" align="left"><table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" align="left"><img src="images/spacer.gif" width="10" height="10" /></td>
<td width="5%" align="left"><img src="images/spacer.gif" width="10" height="10" /></td>
<td width="27%" align="left"><a id="playBtn" onclick="javascript:playStream();"><img src="images/playstream_10.gif" width="104" height="25" /></a></td>
<td align="left"> </td>
</tr>
</table></td>
</tr>
<td colspan="4"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<td colspan="3" valign="top"><table width="87%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="style69">Connect Xuedianyun LiveServer</span></td>
</tr>
<tr>
<td bgcolor="#666666"><img src="images/spacer.gif" width="20" height="3" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="55" height="10" /></td>
</tr>
<tr>
<td><table width="1000" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="8%"><table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><span class="style73">Websocket URL:</span></td>
</tr>
</table></td>
<td align="left"></td>
<td align="left"><input name="websocketURL" type="text" id="websocketURL" size="80" maxlength="80" /></td>
<td width="42%" align="left"><table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="2%" align="left"><img src="images/spacer.gif" width="10" height="10" /></td>
<td width="27%" align="left"><a id="connectBtn" onclick="javascript:connectLiveServ();"><img src="images/connect.gif" width="104" height="25" /></a></td>
<td align="left"> </td>
<td width="27%" align="left"><a id="disconnectBtn" onclick="javascript:disconnectLiveServ();"><img src="images/disconnect.gif" width="104" height="25" /> <td align="left"> </td>
<td align="left"> </td>
<td width="27%" align="left"><a id="clearBtn" onclick="javascript:clearOutput();"><img src="images/clear.gif" width="104" height="25" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<div id="output"></div>
</body>
</html>