Google is committed to advancing racial equity for Black communities.
See how.
Getting started with WebRTC
Creating a new application based on the WebRTC technologies can be overwhelming
if you're unfamiliar with the APIs. In this section we will show how to get
started with the various APIs in the WebRTC standard, by explaining a number of
common use cases and code snippets for solving those.
WebRTC APIs
The WebRTC standard covers, on a high level, two different technologies: media
capture devices and peer-to-peer connectivity.
Media capture devices includes video cameras and microphones, but also screen
capturing "devices". For cameras and microphones, we use
navigator.mediaDevices.getUserMedia()
to capture MediaStreams
. For screen
recording, we use navigator.mediaDevices.getDisplayMedia()
instead.
The peer-to-peer connectivity is handled by the RTCPeerConnection
interface.
This is the central point for establishing and controlling the connection
between two peers in WebRTC.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-05-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2019-05-28 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-05-28 UTC."],[],[]]