-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (40 loc) · 1.3 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
<!DOCTYPE html>
<head>
<title>Realtime communication with WebRTC</title>
<link rel="stylesheet" href="/css/main.css" />
</head>
<body>
<h1>Realtime communication with WebRTC</h1>
<div id="metadata">
Room Name: <span id="room"></span>
<br>
User ID: <span id="id"></span>
</div>
<button id="joinButton">Join Room</button>
<button id="hangupButton">Hangup</button>
<div id="rtc">
<div id="localVideoContainer">
<h2>Local Streams</h2>
<video id="localVideo" autoplay muted playsinline controls></video>
<button id="toggleLocalVideo">Puase Video</button>
<button id="toggleLocalAudio">Pause Audio</button>
<div id="localScreenShare">
<h2>Local Screen Share</h2>
<video id="localScreen" autoplay playsinline controls></video>
<button id="toggleLocalScreen">Toggle Screen Share</button>
</div>
</div>
<div id="remoteVideoContainer">
</div>
<div id="messagesContainer">
<h2>Messages</h2>
<ul id="messages"></ul>
<textarea name="message" id="newMessage"></textarea>
<button id="sendMessage">Send</button>
</div>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="js/main.js"></script>
</body>
</html>