-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (67 loc) · 1.63 KB
/
Copy pathindex.html
File metadata and controls
79 lines (67 loc) · 1.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic WebRTC</title>
<script src="index.js" defer></script>
<style>
* {
padding: 0%;
margin: 0%;
box-sizing: border-box;
}
#videoContainer {
width: 80vw;
height: 100vh;
margin: auto;
position: relative;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background-color: grey;
}
#peers {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
}
#local {
position: absolute;
bottom: 1px;
right: 1px;
width: 30%;
height: 30%;
z-index: -1;
}
video {
object-fit: cover;
width: 100%;
height: 100%;
}
#start {
position: absolute;
bottom: 5%;
left: 5%;
}
#start:hover {
cursor: pointer;
}
</style>
</head>
<body>
<div id="videoContainer">
<div id="peers">
<h3>Peer Video</h1>
<video src="" id="peerVideo" autoplay></video>
</div>
<div id="local">
<h3>Local Video</h1>
<video src="" id="localVideo" muted autoplay></video>
</div>
<button id="start">START</button>
</div>
</body>
</html>