Submitted Successfully!
To reward your contribution, here is a gift for you: A free trial for our video production service.
Thank you for your contribution! You can also upload a video entry or images related to this topic.
Version Summary Created by Modification Content Size Created at Operation
1 handwiki -- 1092 2022-10-25 01:39:21

Video Upload Options

We provide professional Video Production Services to translate complex research into visually appealing presentations. Would you like to try it?

Confirm

Are you sure to Delete?
Cite
If you have any further questions, please contact Encyclopedia Editorial Office.
HandWiki. WebRTC. Encyclopedia. Available online: https://encyclopedia.pub/entry/31134 (accessed on 15 November 2024).
HandWiki. WebRTC. Encyclopedia. Available at: https://encyclopedia.pub/entry/31134. Accessed November 15, 2024.
HandWiki. "WebRTC" Encyclopedia, https://encyclopedia.pub/entry/31134 (accessed November 15, 2024).
HandWiki. (2022, October 25). WebRTC. In Encyclopedia. https://encyclopedia.pub/entry/31134
HandWiki. "WebRTC." Encyclopedia. Web. 25 October, 2022.
WebRTC
Edit

WebRTC (Web Real-Time Communication) is a free and open-source project providing web browsers and mobile applications with real-time communication (RTC) via application programming interfaces (APIs). It allows audio and video communication to work inside web pages by allowing direct peer-to-peer communication, eliminating the need to install plugins or download native apps. Supported by Apple, Google, Microsoft, Mozilla, and Opera, WebRTC specifications have been published by the World Wide Web Consortium (W3C) and the Internet Engineering Task Force (IETF). According to the webrtc.org website, the purpose of the project is to "enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols".

real-time communication mobile applications mozilla

1. History

In May 2010, Google bought Global IP Solutions or GIPS, a VoIP and videoconferencing software company that had developed many components required for RTC, such as codecs and echo cancellation techniques. Google open-sourced the GIPS technology and engaged with relevant standards bodies at the IETF and W3C to ensure industry consensus.[1][2] In May 2011, Google released an open-source project for browser-based real-time communication known as WebRTC.[3] This has been followed by ongoing work to standardize the relevant protocols in the IETF[4] and browser APIs in the W3C.[5]

In January 2011, Ericsson Labs built the first implementation of WebRTC using a modified WebKit library.[6][7] In October 2011, the W3C published its first draft for the spec.[8] WebRTC milestones include the first cross-browser video call (February 2013), first cross-browser data transfers (February 2014), and as of July 2014 Google Hangouts was "kind of" using WebRTC.[9]

The W3C draft API was based on preliminary work done in the WHATWG.[10] It was referred to as the ConnectionPeer API, and a pre-standards concept implementation was created at Ericsson Labs.[6] The WebRTC Working Group expects this specification to evolve significantly based on:

  • Outcomes of ongoing exchanges in the companion RTCWEB group at IETF[11] to define the set of protocols that, together with this document, define real-time communications in web browsers. While no one signaling protocol is mandated, SIP over WebSockets (RFC 7118) is often used partially due to the applicability of SIP to most of the envisaged communication scenarios as well as the availability of open-source software such as JsSIP.
  • Privacy issues that arise when exposing local capabilities and local streams
  • Technical discussions within the group, on implementing data channels in particular[12]
  • Experience gained through early experimentation
  • Feedback from other groups and individuals

In November 2017, the WebRTC 1.0 specification transitioned from Working Draft to Candidate Recommendation.[13]

In January 2021, the WebRTC 1.0 specification transitioned from Candidate Recommendation to Recommendation.[14]

2. Design

Major components of WebRTC include several JavaScript APIs:

  • getUserMedia acquires the audio and video media (e.g., by accessing a device's camera and microphone).[15]
  • RTCPeerConnection enables audio and video communication between peers. It performs signal processing, codec handling, peer-to-peer communication, security, and bandwidth management.[16]
  • RTCDataChannel allows bidirectional communication of arbitrary data between peers. The data is transported using SCTP over DTLS.[17] It uses the same API as WebSockets and has very low latency.[18]

The WebRTC API also includes a statistics function:

  • getStats allows the web application to retrieve a set of statistics about WebRTC sessions. These statistics data are being described in a separate W3C document.[19]

The WebRTC API includes no provisions for signaling, that is discovering peers to connect to and determine how to establish connections among them. Applications use Interactive Connectivity Establishment for connections and are responsible for managing sessions, possibly relying on any of Session Initiation Protocol, Extensible Messaging and Presence Protocol, Message Queuing Telemetry Transport, Matrix, or another protocol. Signaling may depend on one or more servers.[20][21]

RFC 7478 requires implementations to provide PCMA/PCMU (RFC 3551), Telephone Event as DTMF (RFC 4733), and Opus (RFC 6716) audio codecs as minimum capabilities. The PeerConnection, data channel and media capture browser APIs are detailed in the W3C specification.

W3C is developing ORTC (Object Real-Time Communications) for WebRTC.[22]

3. Applications

WebRTC allows browsers to stream files directly to one another, reducing or entirely removing the need for server-side file hosting. WebTorrent uses a WebRTC transport to enable peer-to-peer file sharing using the BitTorrent protocol in the browser.[23] Some file-sharing websites use it to allow users to send files directly to one another in their browsers, although this requires the uploader to keep the tab open until the file has been downloaded.[24][25][26] A few CDNs, such as the Microsoft-owned Peer5, use the client's bandwidth to upload media to other connected peers, enabling each peer to act as an edge server.[27][28]

Although initially developed for web browsers, WebRTC has applications for non-browser devices, including mobile platforms and IoT devices. Examples include browser-based VoIP telephony, also called cloud phones or web phones, which allow calls to be made and received from within a web browser, replacing the requirement to download and install a softphone.[29]

4. Support

WebRTC is supported by the following browsers (incomplete list; oldest supported version specified):

  • Desktop PC
    • Microsoft Edge 12+[30]
    • Google Chrome 28+
    • Mozilla Firefox 22+[31]
    • Safari 11+[32]
    • Opera 18+[33]
    • Vivaldi 1.9+
    • Brave
  • Android
    • Google Chrome 28+ (enabled by default since 29)
    • Mozilla Firefox 24+[34]
    • Opera Mobile 12+
  • Chrome OS
  • Firefox OS
  • BlackBerry 10
  • iOS
    • MobileSafari/WebKit (iOS 11+)
  • Tizen 3.0

GStreamer directly provides a free WebRTC implementation.[35]

4.1. Codec Support Across Browsers

WebRTC establishes a standard set of codecs which all compliant browsers are required to implement. Some browsers may also support other codecs.[36]

Video codec compatibility
Codec name Profile(s) Browser compatibility
H.264 Constrained Baseline (CB) Chrome (52+), Edge, Firefox[1], Safari
VP8 - Chrome, Edge, Firefox, Safari (12.1+)[37]
VP9 - Chrome (48+), Firefox
Audio codec compatibility
Codec name Browser compatibility
Opus Chrome, Edge, Firefox, Safari
G.711 PCM (A-law) Chrome, Firefox, Safari
G.711 PCM (µ-law) Chrome, Firefox, Safari
G.722 Chrome, Firefox, Safari
iLBC Chrome, Safari
iSAC Chrome, Safari

5. Vulnerability

In January 2015, TorrentFreak reported a serious security flaw in browsers supporting WebRTC, that compromised the security of VPN tunnels by exposing a user's true IP address.[38] The IP address read requests are not visible in the browser's developer console, and they are not blocked by most ad blocking, privacy and security add-ons, enabling online tracking despite precautions.[39]

It has been reported that the cause of the address leak is not a bug that can be patched, but is foundational to the way WebRTC operates; however, there are several solutions to mitigate the problem. WebRTC leakage can be tested for, and solutions are offered for most browsers.[40] WebRTC can be disabled, if not required, in most browsers. The uBlock Origin add-on can fix this problem (as some browsers now fix this problem by themselves, from uBlock Origin v1.38 onwards this option has been disabled on these browsers[41]).

References

  1. "Are the WebRTC components from Google's acquisition of Global IP Solutions?". https://webrtc.org/faq/#are-the-webrtc-components-from-googles-acquisition-of-global-ip-solutions. 
  2. Wauters, Robin (18 May 2010). "Google makes $68.2 million cash offer for Global IP Solutions". TechCrunch. https://techcrunch.com/2010/05/18/google-makes-68-2-million-cash-offer-for-global-ip-solutions. 
  3. Harald Alvestrand (2011-05-31). "Google release of WebRTC source code". public-webrtc@w3.org. http://lists.w3.org/Archives/Public/public-webrtc/2011May/0022.html. 
  4. Charter of the Real-Time Communication in WEB-browsers (rtcweb) working group http://datatracker.ietf.org/wg/rtcweb/charter/
  5. "WebRTC 1.0: Real-time Communication Between Browsers". W3.org. http://www.w3.org/TR/webrtc/. 
  6. "Beyond HTML5: Peer-to-Peer Conversational Video". Labs.ericsson.com. 25 January 2011. http://www.ericsson.com/research-blog/context-aware-communication/beyond-html5-peer-peer-conversational-video/. 
  7. Stefan Håkansson; Stefan Ålund (26 May 2011). "Beyond HTML5: Experiment with Real-Time Communication in a Browser". Ericsson Research blog. https://www.ericsson.com/research-blog/beyond-html5-experiment-real-time-communication-browser. 
  8. "WebRTC 1.0: Real-time Communication Between Browsers (W3C Working Draft 27 October 2011)". 27 October 2011. https://www.w3.org/TR/2011/WD-webrtc-20111027/. 
  9. Nowak, Szymon. "WebRTC: So Much More Than Videoconferencing". https://szimek.github.io/presentation-meetjs-summit-2014-webrtc/#16. 
  10. "Introduction — HTML Standard". Whatwg.org. http://www.whatwg.org/specs/web-apps/current-work/multipage/introduction.html#history-1. 
  11. "Rtcweb Status Pages". Tools.ietf.org. http://tools.ietf.org/wg/rtcweb/. 
  12. "draft-jesup-rtcweb-data-protocol-00 - WebRTC Data Channel Protocol". Tools.ietf.org. http://tools.ietf.org/html/draft-jesup-rtcweb-data-protocol-00. 
  13. "WebRTC 1.0: Real-time Communication Between Browsers (W3C Candidate Recommendation 02 November 2017)". 2 November 2017. https://www.w3.org/TR/2017/CR-webrtc-20171102/. 
  14. "Web Real-Time Communications (WebRTC) transforms the communications landscape as it becomes a World Wide Web Consortium (W3C) Recommendation and Internet Engineering Task Force (IETF) standards". 26 Jan 2021. https://www.w3.org/2021/01/pressrelease-webrtc-rec.html.en. 
  15. "Media Capture and Streams: getUserMedia". W3C. 2013-09-03. https://www.w3.org/TR/mediacapture-streams/#dom-mediadevices-getusermedia. 
  16. "WebRTC: RTCPeerConnection Interface". W3C. 2013-09-10. http://www.w3.org/TR/webrtc/#rtcpeerconnection-interface. 
  17. "RFC 8831 - WebRTC Data Channels" (in en). https://datatracker.ietf.org/doc/html/rfc8831. 
  18. "WebRTC: RTCDataChannel". W3C. 2013-09-10. http://www.w3.org/TR/webrtc/#rtcdatachannel. 
  19. "Identifiers for WebRTC's Statistics API". W3C. 2014-09-29. https://w3c.github.io/webrtc-stats/webrtc-stats.html. 
  20. Tsahi Levent-Levi (13 April 2020). "WebRTC Server: What is it exactly?". BlogGeek.me. https://bloggeek.me/webrtc-server/. 
  21. Tsahi Levent-Levi (13 November 2014). "Matrix.org and WebRTC: An Interview with Matthew Hodgson". BlogGeek.me. https://bloggeek.me/matrix-webrtc-interview/. 
  22. "W3C ORTC (Object Real-time Communications) Community Group". http://www.w3.org/community/ortc/. 
  23. "WebTorrent FAQ" (in en). https://webtorrent.io/faq. 
  24. "How to Transfer Files Between Linux, Android, and iOS Using Snapdrop" (in en-US). 2021-08-04. https://www.makeuseof.com/transfer-files-between-linux-android-ios-snapdrop/. 
  25. Pinola, Melanie (2014-04-07). "The easiest and quickest way to transfer files between devices on the same network" (in en). https://www.computerworld.com/article/2697955/the-easiest-and-quickest-way-to-transfer-files-between-devices-on-the-same-network.html. 
  26. "FilePizza: share files without the middleman in your browser - gHacks Tech News" (in en-US). 2015-05-12. https://www.ghacks.net/2015/05/12/filepizza-share-files-without-the-middleman-in-your-browser/. 
  27. Foley, Mary Jo. "Microsoft acquires Peer5 to supplement Teams' live video streaming" (in en). https://www.zdnet.com/article/microsoft-acquires-peer5-to-supplement-teams-live-video-streaming/. 
  28. "Overview - Peer5 P2P Docs". https://docs.peer5.com/overview/. 
  29. "Catch the Babelfish: Irish telco devises a new kind of cloud phone". November 2017. https://www.siliconrepublic.com/comms/babelfish-softphone-cloud-goldfish. 
  30. "ORTC API is now available in Microsoft Edge". Microsoft. 2015-09-18. https://blogs.windows.com/msedgedev/2015/09/18/ortc-api-is-now-available-in-microsoft-edge/. 
  31. Firefox Notes - Desktop. Mozilla.org (2013-06-25). Retrieved on 2014-04-11. https://www.mozilla.org/en-US/firefox/22.0/releasenotes/
  32. "Safari 11.0". Apple Inc.. https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Safari_11_0/Safari_11_0.html. 
  33. Opera News. blogs.opera.com (2013-11-19). Retrieved on 2015-09-17. http://blogs.opera.com/news/2013/11/opera-18/
  34. Firefox Notes - Desktop. Mozilla.org (2013-09-17). Retrieved on 2014-08-04. https://www.mozilla.org/en-US/mobile/24.0/releasenotes/
  35. "GStreamer 1.14 release notes". https://gstreamer.freedesktop.org/releases/1.14/.  since version 1.14
  36. "Codecs used by WebRTC - Web media technologies | MDN" (in en-US). https://developer.mozilla.org/en-US/docs/Web/Media/Formats/WebRTC_codecs. 
  37. Fablet, Youenn (2019-03-12). "On the Road to WebRTC 1.0, Including VP8". https://webkit.org/blog/8672/on-the-road-to-webrtc-1-0-including-vp8/. 
  38. Huge Security Flaw Leaks VPN Users’ Real IP-addresses TorrentFreak.com (2015-01-30). Retrieved on 2015-02-21. https://torrentfreak.com/huge-security-flaw-leaks-vpn-users-real-ip-addresses-150130/
  39. STUN IP Address requests for WebRTC Retrieved on 2015-02-21. https://github.com/diafygi/webrtc-ips
  40. Timmerman, Crystal (28 February 2022). "WebRTC leaks real IP addresses (even with VPN)". https://www.ipvanish.com/blog/webrtc/. 
  41. Raymond Hill (17 Sep 2021). "Prevent WebRTC from leaking local IP address". uBlock Origin documentation.. https://github.com/gorhill/uBlock/wiki/Prevent-WebRTC-from-leaking-local-IP-address. 
More
Information
Contributor MDPI registered users' name will be linked to their SciProfiles pages. To register with us, please refer to https://encyclopedia.pub/register :
View Times: 1.4K
Entry Collection: HandWiki
Revision: 1 time (View History)
Update Date: 25 Oct 2022
1000/1000
ScholarVision Creations