-
Notifications
You must be signed in to change notification settings - Fork 0
/
vidcontrol.html
74 lines (70 loc) · 2.04 KB
/
vidcontrol.html
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
<!DOCTYPE html>
<html>
<head>
<title>Base Video Player</title>
<link href="./vjs/video-js.css" rel="stylesheet" />
<script src="./vjs/video.js"></script>
<script src="./jquery/jquery.min.js"></script>
<script src="./jquery-ui/js/jquery-ui-1.10.4.custom.min.js"></script>
<link href="./jquery-ui/css/smoothness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" />
<script type="text/javascript" src="./jwplayer/jwplayer.js"></script>
<link rel="stylesheet" href="./style.css">
<script type="text/javascript">
var CAM_IP = "172.16.10.5";
var PAN_INCREMENT = 5;
var TILT_INCREMENT = 5;
var lastValues = [0,0,0];
var PAN_ID = 0;
var TILT_ID = 1;
var ZOOM_ID = 2;
var PAN_MIN = 0;
var PAN_MAX = 360;
var TILT_MIN = 0;
var TILT_MAX = 45;
$(document) { vidsetup()};
</script>
<script type="text/javascript" src="./vidbox.js"></script>
</head>
<body>
<div class="vidcontrol-container">
<img class="vidpreview" src="/x/1/cgi-bin/video.cgi?msubmenu=mjpg&resolution=7" />
<div class="vidoverlay">
<div class="slider-pan"></div>
<div class="slider-tilt"></div>
<form class="dpad">
<table>
<tr>
<td><br /></td>
<td><input class="up_btn" type="button" value="Up"/></td>
<td><br /></td>
</tr>
<tr>
<td><input class="left_btn" type="button" value="Left"/></td>
<td><br /></td>
<td><input class="right_btn" type="button" value="Right"/></td>
</tr>
<tr>
<td><br /></td>
<td><input class="down_btn" type="button" value="Down"/></td>
<td><br /></td>
</tr>
</table>
</form>
</div>
<form class="spinners">
<table>
<tr>
<td>Pan: <input type="text" id="pan_1" class="pan" size="5" /></td>
<td>Tilt: <input type="text" id="tilt_1" class="tilt" size="5" /></td>
<td>Zoom: <input type="text" id="zoom_1" class="zoom" size="5" /></td>
</tr>
<!--<tr>
<td><input type="button" onclick="getptz('1')" value="getPTZ"/></td>
<td><input type="button" onclick="getptz('1')" value="Up"/></td>
<td><input type="button" onclick="getptz('1')" value="getPTZ"/></td>
</tr>-->
</table>
</form>
</div>
</body>
</html>