JavaScript

JavaScript is the programming language used to build WebRTC applications in web browsers.

The entire WebRTC API surface is exposed through JavaScript:

JavaScript and WebRTC development

WebRTC applications are typically built using JavaScript frameworks (React, Vue, Angular) as SPAs. The signaling layer is also written in JavaScript, often using Node.js on the server side with WebSocket for real-time communication.

While the WebRTC APIs are JavaScript, the actual media processing (encoding, decoding, AEC, AGC) runs in native C++ code within libWebRTC. JavaScript orchestrates the session while native code handles the performance-critical media pipeline.

Tsahi Levent-Levi

Tsahi Levent-Levi

Independent WebRTC analyst. 20+ years in telecom, 13 focused on WebRTC. Writes for developers and product teams who need to understand, not just implement, real-time communications.