SimpleWebRTC - World's easiest WebRTC lib
Check out the demo: https://talky.io
It's so easy:
1. Some basic html
<!DOCTYPE html>
<html>
<head>
<script src="http://simplewebrtc.com/latest.js"></script>
</head>
<body>
<div id="localVideo"></div>
<div id="remotesVideos"></div>
</body>
</html>
1. Create our WebRTC object
var webrtc = new WebRTC({
localVideoEl: 'localVideo',
remoteVideosEl: 'remotesVideos',
autoRequestMedia: true
});
2. Tell it to join a room when ready
webrtc.on('readyToCall', function () {
webrtc.joinRoom('your awesome room name');
});
Available Options
peerConnectionConfig
- Set this to specify your own STUN and TURN servers. SimpleWebRTC uses Google's public STUN server by default: stun.l.google.com:19302
. It's intended for public use according to: https://twitter.com/HenrikJoreteg/status/354105684591251456