/
index.html
143 lines (135 loc) · 6.02 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon" href="img/kurento.png" type="image/png"/>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="bower_components/demo-console/index.css">
<link rel="stylesheet" href="bower_components/ekko-lightbox/dist/ekko-lightbox.min.css">
<link rel="stylesheet" href="css/kurento.css">
<script src="bower_components/webrtc-adapter/release/adapter.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/demo-console/index.js"></script>
<script src="bower_components/draggabilly/dist/draggabilly.pkgd.min.js"></script>
<script src="bower_components/ekko-lightbox/dist/ekko-lightbox.min.js"></script>
<script src="bower_components/kurento-utils/js/kurento-utils.js"></script>
<script src="js/index.js"></script>
<title>Kurento Tutorial 4: Video Call 1 to 1 with WebRTC</title>
</head>
<body>
<header>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
<a class="navbar-brand" href=".">Kurento Tutorial</a>
</div>
<div class="collapse navbar-collapse"
id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/Kurento/kurento/tutorials/javascript-node/tree/main/one2one-call">
<span class="glyphicon glyphicon-file"></span> Source Code</a>
</li>
</ul>
</div>
</div>
</div>
</header>
<div class="container">
<div class="page-header">
<h1>Tutorial 4: Video Call 1 to 1 with WebRTC</h1>
<p>
This web application consists on an one to one video call using <a
href="http://www.webrtc.org/">WebRTC</a>. In other words, this
application is similar to a phone but also with video. The <a
href="img/pipeline.png" data-toggle="lightbox"
data-title="Video Call 1 to 1 Media Pipeline"
data-footer="Two interconnected WebRtcEnpoints Media Elements">Media
Pipeline</a> is composed by two interconnected <i>WebRtcEndpoints</i>.
To run this demo follow these steps:
</p>
<ol>
<li>Open this page with a browser compliant with WebRTC (Chrome, Firefox).</li>
<li>Type a nick in the field <i>Name</i> and click on <i>Register</i>.</li>
<li>In a different machine (or a different tab in the same browser) follow the same procedure to register another user.</li>
<li>Type the name of the user to be called in the field <i>Peer</i> and click <i>Call</i>.</li>
<li>Grant the access to the camera and microphone for both users. After the SDP negotiation the communication should start.</li>
<li>The called user should accept the incoming call (by a confirmation dialog).</li>
<li>Click on <i>Stop</i> to finish the communication.</li>
</ol>
</div>
<div class="row">
<div class="col-md-5">
<label class="control-label" for="name">Name</label>
<div class="row">
<div class="col-md-6">
<input id="name" name="name" class="form-control" type="text"/>
</div>
<div class="col-md-6 text-right">
<a id="register" href="#" class="btn btn-primary">
<span class="glyphicon glyphicon-plus"></span> Register</a>
</div>
</div>
<br/>
<br/>
<label class="control-label" for="peer">Peer</label>
<div class="row">
<div class="col-md-6">
<input id="peer" name="peer" class="form-control" type="text">
</div>
<div class="col-md-6 text-right">
<a id="call" href="#" class="btn btn-success">
<span class="glyphicon glyphicon-play"></span> Call</a>
<a id="terminate" href="#" class="btn btn-danger">
<span class="glyphicon glyphicon-stop"></span> Stop</a>
</div>
</div>
<br/>
<label class="control-label" for="console">Console</label><br><br>
<div id="console" class="democonsole">
<ul></ul>
</div>
</div>
<div class="col-md-7">
<div id="videoBig">
<video id="videoOutput" autoplay width="640px" height="480px" poster="img/webrtc.png"></video>
</div>
<div id="videoSmall">
<video id="videoInput" autoplay width="240px" height="180px" poster="img/webrtc.png"></video>
</div>
</div>
</div>
</div>
<footer>
<div class="foot-fixed-bottom">
<div class="container text-center">
<hr/>
<div class="row">© 2014-2015 Kurento</div>
<div class="row">
<div class="col-md-4">
<a href="http://www.urjc.es">
<img src="img/urjc.gif" alt="Universidad Rey Juan Carlos" height="50px"/>
</a>
</div>
<div class="col-md-4">
<a href="https://kurento.openvidu.io/">
<img src="img/kurento.png" alt="Kurento" height="50px"/>
</a>
</div>
<div class="col-md-4">
<a href="http://www.naevatec.com">
<img src="img/naevatec.png" alt="Naevatec" height="50px"/>
</a>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>