/
client-B.html
62 lines (40 loc) · 1.11 KB
/
client-B.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
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>client-B</title>
<link rel="stylesheet" type="text/css" href="client-B.css">
</head>
<body>
Remote Base64 Offer<br />
<textarea id="RemoteBase64Offer"></textarea> <br/>
<button onclick="window.setOffer()"> Set The Remote Offer </button> <br />
<br />
Local Base64 Answer<br />
<textarea id="LocalBase64Answer" readonly="true"></textarea> <br />
<br />
<p>Local</p>
<p id="local-stat-video-show"></p>
<p id="local-stat-audio-show"></p>
<video id="video1" width="320" height="240" autoplay muted></video> <br />
<br />
<p>Remote</p>
<p id="remote-stat-video-show"></p>
<p id="remote-stat-audio-show"></p>
<video id="video2" width="320" height="240" autoplay muted></video> <br />
<br />
Message<br />
<textarea id="message">This is my DataChannel message!</textarea> <br/>
<button onclick="window.sendMessage()">Send Message</button> <br />
<br />
Logs<br />
<div id="logs"></div>
</body>
<script type="text/javascript" src="/client-B.js"></script>
<br />
<div id="stats-video">
</div>
<br />
<div id="stats-audio">
</div>
</html>