third-party software.
data and media connections, and more.
Interoperability
WebRTC concepts and usage
RTCPeerConnection
interface. Once a connection has been established and opened using RTCPeerConnection
, media streams (MediaStream
s) and/or data channels (RTCDataChannels) can be added to the connection.MediaStreamTrack
interface, may contain one of a number of types of media data, including audio, video, and text (such as subtitles or even chapter names). RTCDataChannel
interface. This can be used for back-channel information, metadata exchange, game status packets, file transfers, or even as a primary channel for data transfer.WebRTC interfaces
These interfaces are used to set up, open, and manage WebRTC connections. Included are interfaces representing peer media connections, data channels, and interfaces used when exchanging information on the capabilities of each peer in order to select the best possible configuration for a two-way media connection.
remote peer. It is used to handle efficient streaming of data between
the two peers.
RTCDataChannel
to a RTCPeerConnection
. The only event sent with this interface is datachannel
.RTCSessionDescription
consists of a description type
indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session.RTCPeerConnection
object when requesting it to create offers or answers.RTCPeerConnection.getStats()
. Details about using WebRTC statistics can be found in WebRTC Statistics API.RTCPeerConnection
.RTCPeerConnection
. Only one event is of this type: icecandidate
.MediaStreamTrack
on an RTCPeerConnection
.MediaStreamTrack
on an RTCPeerConnection
.track
event, which indicates that an RTCRtpReceiver
object was added to the RTCPeerConnection
object, indicating that a new incoming MediaStreamTrack
was created and added to the RTCPeerConnection
.RTCPeerConnection
'
s data channels are sent and received.RTCSctpTransport
instance.Identity and security
The WebRTC API includes a number of interfaces which are used to manage security and identity.
RTCIdentityProvider
Enables a user agent is able to request that an identity assertion be generated or validated.
RTCPeerConnection
. The only event sent with this type is identityresult
.RTCPeerConnection
. Two events are sent with this type: idpassertionerror
and idpvalidationerror
.RTCPeerConnection
.tonechange
event to indicate that a DTMF tone has either begun or ended. This event does not bubble (except where otherwise stated) and is not cancelable (except where otherwise stated).Guides
In this article, we'll look at the lifetime of a WebRTC session, from
establishing the connection all the way through closing the connection
when it's no longer needed.
created for a previous example and adds support for opening video calls
among participants. The chat server's WebSocket connection is used for
WebRTC signaling.
well as the optional ones supported by various popular browsers.
Included is a guide to help you choose the best codecs for your needs.
RTCDataChannel
to exchange arbitrary data between two peers.RTCDTMFSender
interface. This guide shows how to do so.Tutorials
RTCDataChannel
interface is a feature which lets you open a channel between two peers over which you may send and receive arbitrary data. The API is intentionally similar to the WebSocket API, so that the same programming model can be used for each.Resources
WebRTC-proper protocols
- Application Layer Protocol Negotiation for Web Real-Time Communications
- WebRTC Audio Codec and Processing Requirements
- RTCWeb Data Channels
- RTCWeb Data Channel Protocol
- Web Real-Time Communication (WebRTC): Media Transport and Use of RTP
- WebRTC Security Architecture
- Transports for RTCWEB
- Interactive Connectivity Establishment (ICE): A Protocol for Network Address
- Translator (NAT) Traversal for Offer/Answer Protocol
- Session Traversal Utilities for NAT (STUN)
- URI Scheme for the Session Traversal Utilities for NAT (STUN) Protocol
- Traversal Using Relays around NAT (TURN) Uniform Resource Identifiers
- An Offer/Answer Model with Session Description Protocol (SDP)
- Session Traversal Utilities for NAT (STUN) Extension for Third Party Authorization
Specifications
See also
- MediaDevices
- MediaStreamEvent
- MediaStreamConstraints
- MediaStreamTrack
- MessageEvent
- MediaStream
- Media Capture and Streams API
- Firefox multistream and renegotiation for Jitsi Videobridge
- Peering Through the WebRTC Fog with SocketPeer
- Inside the Party Bus: Building a Web App with Multiple Live Video Streams + Interactive Graphics
- Web media technologies
Credits
- Source: https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API
- Published under Open CC Attribution ShareAlike 3.0 licence