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.
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.
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).
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.
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(...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With