forked from varunon9/webRTC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (50 loc) · 1.98 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
<!DOCTYPE html>
<html>
<head>
<title>webRTC chat</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1">
<link rel="stylesheet" type="text/css" href="main.css">
<script src="socket.io.js"></script>
</head>
<body>
<div id="main">
<div id="connectionStatus">
<div id="makeConnection">
<form id="makeConnectionForm" action="#">
<input id="makeConnectionInputField" type="text" placeholder="Enter your friend's id here" autocomplete="off"/>
<input type="submit" value="connect" />
</form>
</div>
<p id="welcome"></p>
<p id="connectedOrDisconnected"></p>
</div>
<div id="videoContainer">
<div id="localVideoController">
<video id="localVideo" autoplay muted></video>
<div id="control">
<input type="button" id="startButton" value="Call"></input>
<input type="button" id="stopButton" value="End"></input>
</div>
</div>
<div id="remoteVideoContainer">
<video id="remoteVideo" autoplay></video>
</div>
<div id="toast">
</div>
</div>
</div>
<div id="chatMessages">
<ol id="chatMessagesList">
</ol>
</div>
<div id="typeMessages">
<form id="typeMessagesForm" action="#">
<input type="text" id="chatTextField" placeholder="Type something" autocomplete="off">
<input type="submit" value="Send" id="sendMessageButton"/>
</form>
</div>
<script src="jquery.js"></script>
<script type="text/javascript" src="webrtc.js"></script>
</body>
</html>