2. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
Francesca Tosi
Something about me!!!
FREELANCE
- WEB & MOBILE DEVELOPER
- SOFTWARE ENGINEER
- SOFTWARE ARCHITECT WITH A
PASSION FOR CLEAN CODE AND
FINE TUNED DETAILS.
#JOOINK TEAM
#GDG-FIRENZE #GDG-ANCONA
#INTEL SOFTWARE INNOVATOR
#GWTCON
FRANCESCA@JOOINK.COM
@FRANCESCATOSI
5. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
Power-up your mobile & web
app with WebRTC
Agenda
• COME HTML5 HA CAMBIATO IL MODO DI PENSARE IL WEB E LE APPLICAZIONI
• PERCHE’ WEBRTC E’ UNA DISRUPTIVE API
• ANATOMIA DI WEBRTC
• SCHEMA DI UNA COMUNICAZIONE P2P SERVERLESS
• WEBRTC NEL MONDO REALE: INFRASTRUTTURA E NAT TRAVERSAL
• PROJECT-P: WEB-BASED MESH LIKE NETWORK
• WEBRTC: HANDS ON
7. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
Plug-in free real-time communication …
WebRTC is a free, open project that enables web
browsers and mobile applications with Real-Time
Communications (RTC) capabilities via simple
Javascript APIs.
source: webrtc.org
WebRTC
Cos’è WebRTC
20. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
-
WebRTC … secure enough?
But ...
“If the developers fail to
carefully consider the security
implications of their choices,
the safeguards mandated by
the specification will not be
enough to guarantee the
security of their WebRTC-
based applications and the
users.”
21. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
-
WebRTC … secure enough?
Do not ...
“... it would be very easy to
inadvertently click on
something that gave camera or
microphone control to
someone I don't know and don't
care to know.”
Courtney Sato - nerd queen
@ConstellationRG
22. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
-
WebRTC … secure enough?
See also:
WebRTC: APIs, Protocols and Security
Considerations - Part 1 / Part 2
WebRTC Security and Confidentiality
Security Considerations for WebRTC
WebRTC Security Architecture
25. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
HTML5 ha cambiato il modo di pensare il web e le applicazioni
HTML5 API
Le api html5 ci aiutano ad avere delle applicazioni web
- interattive
- ricche di features
- performanti
senza
… senza flash
… senza applets
… senza plugins
41. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
ACQUIRING VIDEO AND AUDIO
WebRTC JS-API
full sample
var constraints = {video: true};
function successCallback(stream) {
var video = document.querySelector("video");
video.src = window.URL.createObjectURL(stream);
}
function errorCallback(error) {
console.log("navigator.getUserMedia error: ", error);
}
navigator.getUserMedia(constraints, successCallback,
errorCallback);
53. www.JooinK.com
FRANCESCA TOSI
francesca@jooink.com
SHORT DESCRIPTION
Project-P
Project-P (http://ozan.io/p/)
P è un framework utilizzato per creare P2P network
(non solo delle semplici connessioni)
Con P è possibile:
- connettersi con un altro browser utilizzando delle
delle connessioni esistenti con altri browser.
Questo è quello che rende P unico → abilita connessioni
transitive attraverso peers, consentendo la creazione
in modo semplice di mesh networks
Tutto attraverso WebRTC