forked from doug2k1/javascript-camera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (62 loc) · 2.09 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Camera</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
</head>
<body>
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-four-fifths">
<h1 class="title">
JavaScript Camera
</h1>
<div style="position: relative; background-color: #999; overflow: auto;">
<img src="rg-mask.svg" style="padding: 64px 32px; position: absolute;">
<video autoplay id="video" style="outline: 2px dashed orange"></video>
</div>
<button class="button is-hidden" id="btnPlay">
<span class="icon is-small">
<i class="fas fa-play"></i>
</span>
</button>
<button class="button" id="btnPause">
<span class="icon is-small">
<i class="fas fa-pause"></i>
</span>
</button>
<button class="button is-success" id="btnScreenshot">
<span class="icon is-small">
<i class="fas fa-camera"></i>
</span>
</button>
<button class="button" id="btnChangeCamera">
<span class="icon">
<i class="fas fa-sync-alt"></i>
</span>
<span>Switch camera</span>
</button>
</div>
<div class="column">
<h2 class="title">Screenshots</h2>
<div id="screenshots"></div>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="content has-text-centered">
<p>
By <a href="https://www.webdevdrops.com/">Douglas Matoso</a> | <a
href="https://github.com/doug2k1/javascript-camera">Source code</a>
</p>
</div>
</footer>
<canvas class="is-hidden" id="canvas"></canvas>
<script src="script.js"></script>
</body>
</html>