-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmimamori.html
88 lines (87 loc) · 4 KB
/
mimamori.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" type="image/png" href="favicon-96x96.png" />
<link rel="shortcut icon" type="image/png" ref="favicon-96x96.png" />
<title>みまもりカメラ</title>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.3/flowbite.min.css"
rel="stylesheet"
/>
</head>
<body>
<header>
<nav
class="bg-white border-gray-200 px-4 lg:px-6 py-2.5 dark:bg-gray-800"
>
<div
class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl"
>
<a href="#" class="flex items-center">
<img
src="./favicon-96x96.png"
class="mr-3 h-6 sm:h-9"
alt="Flowbite Logo"
/>
<span
class="self-center text-xl font-semibold whitespace-nowrap dark:text-white"
>みまもりカメラ</span
>
</a>
<div class="flex items-center lg:order-2">
<select
id="codec"
class="text-gray-800 dark:text-white hover:bg-gray-50 focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-4 lg:px-5 py-2 lg:py-2.5 mr-2 dark:hover:bg-gray-700 focus:outline-none dark:focus:ring-gray-800"
>
<option selected="H264">H264</option>
<option value="VP8">VP8</option>
<option value="VP9">VP9</option>
<option value="AV1">AV1</option>
</select>
<input
type="button"
onclick="captureScreen();"
value="画面キャプチャ"
class="bg-green-400 border border-gray-300 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 mr-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
/>
<input
type="button"
onclick="changeCameraMode('noon');"
value="昼モード"
class="bg-yellow-400 border border-gray-300 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 mr-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
/>
<input
type="button"
onclick="changeCameraMode('night');"
value="夜モード"
class="bg-purple-700 border border-gray-300 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 mr-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
/>
<input
type="button"
onclick="connect();"
value="接続"
class="bg-blue-700 border border-gray-300 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 mr-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
/>
<input
type="button"
onclick="disconnect();"
value="切断"
class="bg-red-700 border border-gray-300 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
/>
</div>
</div>
</nav>
</header>
<div class="mr-2 ml-2">
<video
id="remote_video"
autoplay
style="border: 3px solid gray"
class="w-full"
></video>
</div>
<script type="text/javascript" src="./webrtc.js"></script>
<script type="text/javascript" src="./mimamori-exec-client.js"></script>
</body>
</html>