-
Notifications
You must be signed in to change notification settings - Fork 0
/
offering.html
50 lines (40 loc) · 1.31 KB
/
offering.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>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>offering webrtc without signaling server demo</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="common.js"></script>
<script src="offering.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<h1>webrtc without signaling server demo.</h1>
<div id="chatlog" class="chatlog"></div>
<input id="chatinput" type="text" placeholder="type here" disabled>
<button id="chatbutton" onclick="chatbuttonclick()" disabled>send</button>
<p>
offering a connection to a peer
</p>
<p>
<button id="buttoncreateoffer" onclick="clickcreateoffer()">create offer</button>
</p>
<span id="spanoffer" class="invisible">
<p>
please copy the offer below and send it to a peer.
</p>
<textarea id="textoffer" readonly
placeholder="please wait a few seconds"></textarea>
<button id="buttonoffersent" onclick="clickoffersent()" disabled>offer sent</button>
</span>
<span id="spananswer" class="invisible">
<p>
please wait for peer to give answer and paste it below
</p>
<textarea id="textanswer"
placeholder="please paste answer from peer"></textarea>
<button id="buttonanswerpasted" onclick="clickanswerpasted()">answer pasted</button>
</span>
</body>
</html>