-
Notifications
You must be signed in to change notification settings - Fork 0
Trying different web rtc libraries
skadyansna edited this page Feb 8, 2015
·
4 revisions
After researching upon SimpleWeb-RTC https://simplewebrtc.com/ it was found that there were issues trying to set up peer to peer connection even after using the sandbox provided by the SimpleWeb-RTC.SimpleWeb-RTC provides the sandbox server for development and testing purpose.But when the following code was tried using there sandbox server the connection couldn't be setup. The javascript file
var room = "hhhhhhh"
// create our webrtc connection
var webrtc = new SimpleWebRTC({
// the id/element dom element that will hold "our" video
localVideoEl: 'localVideo',
// the id/element dom element that will hold remote videos
remoteVideosEl: '',
// immediately ask for camera access
autoRequestMedia: true,
debug: false,
detectSpeakingEvents: true,
autoAdjustMic: false
});
// when it's ready, join if we got a room from the URL
webrtc.on('readyToCall', function () {
// you can name it anything
if (room) webrtc.joinRoom(room);
});