Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get started with WebRTC?

Tags:

webrtc

I am a beginner with WebRTC, and I would like to know if there is anything I need to import to use the JavaScript APIs.

like image 607
Sam Avatar asked Sep 07 '13 19:09

Sam


People also ask

Is WebRTC easy to use?

It is open-source and completely free to use. WebRTC comes with a JavaScript API layer to make it as easy as possible to integrate real-time communications. WebRTC is used massively thanks to applications like Google Hangouts, Facebook Messenger, Discord, and others.

Is WebRTC free to use?

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).

Is WebRTC a JavaScript?

WebRTC provides software developers with application programming interfaces (APIs) written in JavaScript. Developers use these APIs to create peer-to-peer (P2P) communications between internet web browsers and mobile applications without worrying about compatibility and support for audio-, video- or text-based content.


1 Answers

No, you do not need to import any library. webRTC is included in Chrome and Firefox (and for Chrome beta and Firefox on Android).

Your error may be because you need to prefix it with webkit like this:

peer = new webkitRTCPeerConnection(...)
like image 102
Mikael Holmgren Avatar answered Nov 16 '22 01:11

Mikael Holmgren