第1页
WebRTC技术初探
©Martin 2014/08/16
第2页
Who am I?
Company:Beansmile
Main Skill:Ruby on Rails
Github:https://github.com/Martin91
Blog:http://martin91.github.io/
第3页
What is WebRTC?
第4页
Characters of WebRTC
1. Plugin FreeMany web services already use RTC, but need downloads, native apps or plugins.Skype, Facebook, Google Hangouts
2. ConvenientNo download, no install, no update.
3. Easy MaintainingNo need to deploy, debug, test and maintain plugins
第5页
WebRTC Architecture
第6页
Main 3 categories of APIs provided by WebRTC
MediaStream (aka getUserMedia)get access to data streams, such as from the user's camera and microphone.
RTCPeerConnectionaudio or video calling, with facilities for encryption and bandwidth management.
RTCDataChannelpeer-to-peer communication of generic data.
第7页
MediaStream: getUserMedia
第8页
RTCPeerConnection
creates an RTCPeerConnection object with an onicecandidate handler
sends serialized candidate data through signalling channel
exchange session description(SDP)
第9页
Signalling channel and WebRTC
第10页
RTCDataChannel
General Data Communication
Act like WebSocket
Use Cases
Gaming
Remote desktop applications
Real-time text chat
File transfer
第11页
Compatibility
Currently supported by Chrome, Firefox and Opera
Browser supports WebRTC only means that it at least implements MediaStream
Apple Will Soon Support WebRTC The team is merging WebRTC related code from Blink to WebKit
Microsoft Internet Explorer is a tough nut to crack
第12页
Cases
Tokbox (aka OpenTok, https://tokbox.com/)Real-Time video communication service provider
InstaEDU (https://instaedu.com/)Based on OpenTok, provided online classrooms with video chat capacity
Ericsson Researches (http://www.ericsson.com/research-blog/)
Experimental WebRTC mobile browser
Field Service Support with Google Glass and WebRTC
Limitless ImaginationsMicrophone, webcam are just a beginning, also other sensors
第13页
–Martin
“That’s all, and thanks!”