forked from SujalXplores/video-chat-app-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (37 loc) · 1.73 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Video Chat App</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">
</head>
<body>
<h1 class="title">Private Meet</h1>
<p id="notification" hidden></p>
<div class="entry-modal" id="entry-modal">
<p>Create or Join Meeting</p>
<input class="form-control" id="room-input" spellcheck="false" autofocus type="text" class="room-input"
placeholder="Enter Room ID" required>
<div class="d-grid gap-2 mt-3">
<button onclick="createRoom()" class="btn btn-warning">Create Room</button>
<button onclick="joinRoom()" class="btn btn-outline-primary">Join Room</button>
<small class="mt-2" align="center">Made with ❤️ by Sujal Shah</small>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm">
<video id="remote-video" autoplay loop></video>
</div>
<div class="col-sm">
<video id="local-video" autoplay loop></video>
</div>
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/peerjs.min.js"></script>
<script src="script.js" defer></script>
</html>