forked from divanov11/WebRTC-Simple-SDP-Handshake-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (39 loc) · 1.96 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
51
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>WebRTC 1</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
</head>
<body>
<div id="intro-container">
<h2>WebRTC, Passing SDP with no signaling.</h2>
<img width="100%" src="WebRTC SDP Gif.gif"/>
<p><b>Instructions: </b>Start by opening two tabs side by side and follow the steps below to pass SDP offer and answer. I will refer to each tab as <i><b>User 1</b></i> and <i><b>User 2</b></i>.</p>
<a href="https://github.com/divanov11/WebRTC-Simple-SDP-Handshake-Demo/" target="_blank"><b>Source Code</b></a>
</div>
<div id="videos">
<video class="video-player" id="user-1" autoplay playsinline></video>
<video class="video-player" id="user-2" autoplay playsinline></video>
</div>
<div class="step">
<p><strong>Step 1:</strong> User 1, click "Create offer" to generate SDP offer and copy offer from text area below.</p>
<button id="create-offer">Create Offer</button>
</div>
<label>SDP OFFER:</label>
<textarea id="offer-sdp" placeholder='User 2, paste SDP offer here...'></textarea>
<div class="step">
<p><strong>Step 2:</strong> User 2, paste SDP offer generated by user 1 into text area above, then click "Create Answer" to generate SDP answer and copy the answer from the text area below.</p>
<button id="create-answer">Create answer</button>
</div>
<label>SDP Answer:</label>
<textarea id="answer-sdp" placeholder="User 1, paste SDP answer here..."></textarea>
<div class="step">
<p><strong>Step 3:</strong> User 1, paste SDP offer generated by user 2 into text area above and then click "Add Answer"</p>
<button id="add-answer">Add answer</button>
</div>
</body>
<script src='main.js'></script>
</html>