-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwsVideoChat.html
More file actions
100 lines (80 loc) · 2.53 KB
/
wsVideoChat.html
File metadata and controls
100 lines (80 loc) · 2.53 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/assets/bootstrap/css/bootstrap.min.css">
<title>Hello, world!</title>
<script defer>
let name = prompt('name?') ?? Date.now();
if (name == "") name = 'user - ' + Math.random().toFixed(2);
</script>
<script defer src="http://localhost:3000/socket.io/socket.io.js"></script>
<script defer src="main.js"></script>
</head>
<body>
<style>
section {
background-color: #272727;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
}
.card {
width: 55%;
background-color: #c8c8c8;
}
.box-msg {
position: relative;
display: flex;
flex-wrap: wrap;
max-height: 50vh;
overflow-y: auto;
border: 2px solid #414141;
border-radius: 5px;
}
.box-msg video {
position: relative;
width: 50%;
}
.box-msg img {
position: relative;
width: 50%;
}
.box-users {
max-height: 50vh;
overflow-y: auto;
border: 2px solid #414141;
border-radius: 5px;
padding: 10px 0;
padding-left: 30px;
}
</style>
<section>
<div class="card">
<form class="card-body" id="box-form">
<div class="box-msg m-0" id="box-stream">
</div>
<button type="button" class="btn btn-primary btn-sm btn-block mt-3" id="stream-btn">Stream</button>
<a href="index.html" class="btn btn-secondary btn-sm mt-2">back</a>
</form>
</div>
<div class="card mt-3 py-1 px-2">
<h5 class="p-0">Joined User</h5>
<div class="box-users mt-2" id="box-users">
</div>
</div>
</section>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="assets/bootstrap/js/jquery-3.4.1.min.js"></script>
<script src="assets/bootstrap/js/popper.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>