-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (86 loc) · 2.36 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebRTC webcam</title>
<style>
button {
padding: 8px 16px;
}
video {
width: 100%;
}
.option {
margin-bottom: 8px;
}
#media {
margin: auto;
}
.container {
width: 100vw;
}
.scaling-element {
height: 100%;
width: auto; /* This maintains the aspect ratio of the element */
display: block; /* Remove any default styling for inline elements */
margin: auto;
}
#float {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 10vh;
font-size: max(8vh, 50px);
color: rgba(255, 255, 255, 0.750);
z-index: 100;
/* -webkit-text-stroke: 0.01em black; */
text-shadow:#000 1px 0px 0.2em, #000 0 1px 0.2em, #000 -1px 0 0.2em, #000 0 -1px 0.2em;
}
.prompt {
position: fixed; height: 100vh; width: 100vw; top: 0; left: 0;
color: whitesmoke;
font-size: max(10vw, 50px);
pointer-events: none;
}
.prompt > div {
position: absolute;
left:50%;top:50%;transform: translate(-50%, -50%);
background-color: rgb(252 175 8 / 75%);
border-radius: 100px;
padding: 0.2em;
text-shadow:#000 1px 0px 0.2em, #000 0 1px 0.2em, #000 -1px 0 0.2em, #000 0 -1px 0.2em;
display: none;
}
</style>
</head>
<body style="background: black; overflow: hidden; margin: 0px;">
<!--
<div class="option">
<input id="use-stun" type="checkbox"/>
<label for="use-stun">Use STUN server</label>
</div>
<button id="start" onclick="start()">Start</button>
<button id="stop" style="display: none" onclick="stop()">Stop</button> -->
<div id="float">
<marquee behavior="scroll" direction="left" id="marquee"></marquee>
</div>
<div id="media" onclick="start()">
<audio id="audio" autoplay="true"></audio>
<div class="container">
<video id="video" autoplay="true" playsinline="true" class="scaling-element"></video>
</div>
</div>
<div class="prompt">
<div id="vocal">原/伴唱</div>
<div id="skip">切歌</div>
<div id="replay">重播</div>
</div>
<script src="client.js"></script>
<script>
// (function (){
// setTimeout(start, 2000);
// }) ();
</script>
</body>
</html>