From af44bdc5f76d295efe7c12797710eeba6d16b2a2 Mon Sep 17 00:00:00 2001 From: Artyom Abubakirov Date: Thu, 7 Jun 2018 17:49:18 +0500 Subject: [PATCH] Change domain --- server.js | 2 +- static/index.html | 9 +-------- static/js/index.js | 15 ++------------- 3 files changed, 4 insertions(+), 22 deletions(-) diff --git a/server.js b/server.js index 02e1f4b..ce8eda6 100755 --- a/server.js +++ b/server.js @@ -60,7 +60,7 @@ server.listen(port, function() { */ function getRoom(socket) { - if (rooms[socket.room] == undefined) { + if (rooms[socket.room] === undefined) { createRoom(socket.room); } return rooms[socket.room]; diff --git a/static/index.html b/static/index.html index 48c5fa1..a51467f 100755 --- a/static/index.html +++ b/static/index.html @@ -22,13 +22,6 @@ Steam - - - - - - - + diff --git a/static/js/index.js b/static/js/index.js index 671d819..5debacd 100755 --- a/static/js/index.js +++ b/static/js/index.js @@ -34,7 +34,7 @@ $(function() { console.log(room); - socket = io('https://kurento.fishrungames.com/'); + socket = io('https://stream.gto.to/'); $('#call').on('click', function(e) { presenter(); e.preventDefault(); } ); $('#viewer').on('click', function(e) { viewer(); e.preventDefault(); } ); @@ -131,18 +131,7 @@ function viewer() { var options = { remoteVideo: video, - onicecandidate : onIceCandidate, - configuration: { - iceServers:[ - { - urls: 'turn:numb.viagenie.ca', - credential: '170988abC', - password: '170988abC', - username: 'wow_123@bk.ru' - } - ] - - } + onicecandidate : onIceCandidate }; webRtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerRecvonly(options, function(error) {