SimpleWebRTC - World's easiest WebRTC lib
Want to see it in action? 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>
<style>
#remoteVideos video {
height: 150px;
}
#localVideo {
height: 150px;
}
</style>
</head>
<body>
<video id="localVideo"></video>
<div id="remoteVideos"></div>
</body>
</html>
2. Create our WebRTC object
var webrtc = new SimpleWebRTC({
localVideoEl: 'localVideo',
remoteVideosEl: 'remoteVideos',
autoRequestMedia: true
});
3. 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. By default, SimpleWebRTC uses Google's public STUN server (stun.l.google.com:19302
), which is intended for public use according to: https://twitter.com/HenrikJoreteg/status/354105684591251456
Got questions?
Join the SimpleWebRTC discussion list:
http://lists.andyet.com/mailman/listinfo/simplewebrtc