This repository has been archived by the owner on May 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
418 lines (355 loc) · 13.9 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WebRTC: Das Web auf dem nächsten Level</title>
<meta name="description" content="WebRTC: Simple P2P Communication for the Web">
<meta name="author" content="Jan Lelis">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<link rel="stylesheet" href="lib/css/zenburn.css">
<link href="http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Lobster:400" rel="stylesheet" type="text/css" />
<script>
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<style>
#gum-video {
height: 1000px;
background: black;
box-shadow: 0px 0px 20px #333;
}
.reveal section img {
border: 0px;
}
.reveal section img.no-shadow {
box-shadow: none;
}
pre code {
font-size: 21pt;
line-height: 25pt;
background: #111;
}
pre .xml .javascript {
opacity: 1;
color: #fff;
}
</style>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<section>
<h1>WebRTC</h1>
<h2>Das Web auf dem nächsten Level</h2>
<br/>
<p>Jan Lelis, <a href="https://twitter.com/JanLelis">@JanLelis</a><br/>
Marius Melzer, <a href="https://twitter.com/faraoso">@faraoso</a></p>
<br/>
<p><strong>#ejs14</strong> / 30. Juni 2014</p>
</section>
<section>
<h2>palava.tv</h2>
<h3>Browser-zu-Browser Video</h3>
<img class="no-shadow" src="images/palava-logo.png" style="width: 250px" />
<p>Komplett Open Source</p>
<p>palava e. V.</p>
</section>
</section>
<section>
<section>
<h3>RTCWEB @ IETF</h3>
<p>P2P Verbindungen zwischen Browsern</p>
<p class="fragment">… inklusive Video/Audio Streams</p>
<p class="fragment">Aufbauend auf bestehenden VOIP Technologien</p>
<br/><br/>
<div class="fragment">
<h3>WebRTC @ W3C</h3>
<p>JavaScript API für das RTCWEB</p>
<p class="fragment"><strong>Außerdem:</strong> Implementierung von Google</p>
</div>
</section>
<section>
<h3>Internet Explorer?</h3>
<img src="images/modern-ie.png" alt="browser support 2"/>
</section>
</section>
<section>
<section>
<h2>Demo: Kamerazugriff</h2>
</section>
<section>
<h3>ASCII Kamera</h3>
<img src="images/ascii-camera.png" alt="ascii-camera"/>
</section>
<section>
<h3>Echtfarbwähler</h3>
<img src="images/color-picker.png" alt="color-picker"/>
</section>
</section>
<section>
<section>
<h2>Demo: Video Konferenzen</h2>
</section>
<section>
<h3>palava.tv</h3>
<img src="images/palava.png" />
</section>
<section>
<h3>talky.io</h3>
<img src="images/talky.png" />
</section>
<section>
<h3>codassium.com</h3>
<img src="images/codassium.png" />
</section>
</section>
<section>
<section>
<h2>Demo: Data Channels</h2>
</section>
<section>
<h3>Together.JS</h3>
<img src="images/togetherjs.png"/>
</section>
<section>
<h3>Peer5 Downloader</h3>
<img src="images/peer5-downloader.png" alt="peer5-downloader"/>
</section>
<section>
<h3>Pipe.com</h3>
<img src="images/pipe.png"/>
</section>
<section>
<h3>Banana Bread</h3>
<img src="images/bananabread.png" alt="banana-bread"/>
</section>
</section>
<section>
<section>
<h2>WebRTC Verbindungsaufbau</h2>
<p>Initialisierung mittels eines Rendezvous-Server: <strong>Signaling</strong></p>
<p class="fragment">Austausch von Streaming-Eigenschaften (<strong>SDP</strong>)</p>
<p class="fragment">NAT Traversal über ICE mit <strong>STUN</strong> und <strong>TURN</strong> Servern</p>
</section>
<section>
<h3>WebRTC Signaling Konzept</h3>
<p>Entwickler entscheidet, wie eine <code>PeerConnection</code> entsteht</p>
<p class="fragment">XMPP / SIP / WebSockets / XHR / …</p>
</section>
<section>
<h3>Externer Signaling Kanal</h3>
<img class="no-shadow" src="images/signaling-server.png">
</section>
<section>
<h3>Peers Finden</h3>
<img class="no-shadow" src="images/join.png">
</section>
<section>
<h3>Austausch der verfügbaren Resourcen</h3>
<img class="no-shadow" src="images/offer-answer.png">
</section>
<section>
<h3>Hole Punching</h3>
<img class="no-shadow" src="images/stun2.png">
</section>
<section>
<h3>Erfolg / 84%</h3>
<img class="no-shadow" src="images/peerconnection.png">
</section>
<section>
<h3>TURN Relay / 14%</h3>
<img class="no-shadow" src="images/turn.png">
</section>
<section>
<h3>Open Source Signaling Server</h3>
<p>palava-machine (ruby)</p>
<p>signalmaster (node.js)</p>
<p>webrtc.io (node.js)</p>
<p>together.js hub (node.js)</p>
<p>peerjs server (node.js)</p>
</section>
<section>
<h3>Video Konferenzen?</h3>
<p>Pures WebRTC ist auf Mesh-Struktur beschränkt</p>
<p class="fragment"><strong>Server:</strong> Multipoint Control / Selective Forwarding Unit</p>
</section>
<section>
<h3>Data Channels</h3>
<p>Das Web heute: <strong>Client-Server-Client</strong> Kommunikation</p>
<p class="fragment">Das Web mit Data Channels: <strong>Client-Client</strong> Kommunikation</p>
<p class="fragment">Dateiaustausch, Content-Delivery,<br/>Vertraulicher Text, Gaming, …</p>
<br/>
<!-- <p class="fragment"><strong>SCTP</strong> über <strong>DTLS</strong> über <strong>UDP</strong></p> -->
</section>
</section>
<section>
<section>
<h2>JavaScript API</h2>
<img src="images/webrtc-components.png" />
</section>
<section>
<h3>getUserMedia</h3>
<pre><code data-trim contenteditable class="javascript">
<video id="gum-video" autoplay="autoplay">
<script>
navigator.webkitGetUserMedia(
{video: true, audio: false},
function(stream) {
document.getElementById('gum-video').src =
webkitURL.createObjectURL(stream);
}
);
</script>
</code></pre>
</section>
<section>
<h3>PeerConnection 1/2</h3>
<pre><code data-trim contenteditable class="javascript">
// create new peer connection
var pc = new webkitRTCPeerConnection(
{iceServers: [{url: "stun:stun.palava.tv"}]},
{optional: [{DtlsSrtpKeyAgreement: true}]}
);
</code></pre>
<pre class="fragment"><code>// add a stream we got from getUserMedia
pc.addStream(localStream);
</code></pre>
<pre class="fragment"><code data-trim contenteditable class="javascript">// bind remote stream to a video tag as soon as we get it
pc.onaddstream = function(event) {
$('#remote-video-tag')[0].src =
webkitURL.createObjectURL(event.stream);
};
</code></pre>
<pre class="fragment"><code data-trim contenteditable class="javascript">
// connect to signaling provider, e.g. palava machine
var server = new WebSocket('wss:machine.palava.tv');
</code></pre>
</section>
<section>
<h3>PeerConnection 2/2</h3>
<pre><code data-trim contenteditable class="javascript">
pc.createOffer(function(sdp) {
// register local SDP with our new connection
pc.setLocalDescription(sdp);
// send the SDP to other peer val signaling
server.send(JSON.stringify({peer_id: 42, event: 'offer', sdp: sdp}));
}
</code></pre>
<pre class="fragment"><code data-trim contenteditable class="javascript">
// other peer receives 'offer' and sends an 'answer' via server
server.onmessage = function(msg) {
payload = JSON.parse(msg.data);
if(payload.event === 'answer') {
pc.setRemoteDescription(
new RTCSessionDescription(payload.sdp)
);
// ...
</code></pre>
<pre class="fragment"><code data-trim contenteditable class="javascript">
// ice candidate exchange...
</code></pre>
</section>
<section>
<h3>DataChannel</h3>
<pre><code data-trim contenteditable class="javascript">
// uses PeerConnection w/ {RtpDataChannels: true}
dc = pc.createDataChannel("myDataChannel", {reliable: false});
</code></pre>
<pre class="fragment"><code data-trim contenteditable class="javascript">
// remote peerconnection has registered callback on datachannel
dc = null;
pc.ondatachannel = function(event){
dc = event.channel;
};
</code></pre>
<pre class="fragment"><code data-trim contenteditable class="javascript">
// both sides register events using a WebSocket-like API
dc.onopen(...);
dc.onmessage(...);
dc.onerror(...);
dc.onclose(...);
</code></pre>
</section>
</section>
<section>
<section>
<h2>palava.tv Software Stack</h2>
<p><a href="https://github.com/palavatv">github.com/palavatv</a></p>
<br/>
<p><strong>Clientseitig:</strong> palava-client</p>
<p><strong>Serverseitig:</strong> palava-machine</p>
<p><strong>Unterstützung:</strong> palava-stats, palava-hq, …</p>
</section>
<section>
<h3>Eigenes Palava</h3>
<p>62 Zeilen inkl. HTML: <a href="https://gist.github.com/farao/8392186">Minimalbeispiel</a></p>
<p>palava.tv Webanwendung: <a href="https://github.com/palavatv/palava-portal">palava-portal</a></p>
<br/>
<div class="fragment">
<h3>Wir helfen bei der Einrichtung</h3>
<p><a href="mailto:[email protected]">[email protected]</a></p>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
<br/>
<div class="fragment">
<h3>WebRTC Signaling Service (in Arbeit)</h3>
<p><a href="http://signaling.io">signaling.io</a></p>
</div>
</section>
</section>
<section>
<section>
<h1>WebRTC</h1>
<h3>Bringt P2P/Echtzeit-Kommunikation in das Web!</h3>
<p class="fragment">Stellt dafür eine einfache JavaScript API zur Verfügung</p>
<p class="fragment">DataChannels ermöglichen nahezu serverlose Kommunikation</p>
<div class="fragment">
<br/><p><strong>Standardisierung:</strong></p>
<p>Entworfen, um mit dem Rest der Welt kompatibel zu sein</p>
</div>
</section>
<section>
<h2>Dankeschön!</h2>
<p><a href="https://palava.tv">palava.tv</a></p>
<p><a href="http://signaling.io">signaling.io</a></p>
<br/>
<p>Und noch eine schöne <strong>#ejs14</strong>!</p>
</section>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
slideNumber: true,
theme: Reveal.getQueryHash().theme || 'beige', // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'concave', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>