Change domain

This commit is contained in:
Artyom Abubakirov 2018-06-07 17:49:18 +05:00
parent 67fcfc8beb
commit af44bdc5f7
3 changed files with 4 additions and 22 deletions

View File

@ -60,7 +60,7 @@ server.listen(port, function() {
*/ */
function getRoom(socket) { function getRoom(socket) {
if (rooms[socket.room] == undefined) { if (rooms[socket.room] === undefined) {
createRoom(socket.room); createRoom(socket.room);
} }
return rooms[socket.room]; return rooms[socket.room];

View File

@ -22,13 +22,6 @@
<title>Steam</title> <title>Steam</title>
</head> </head>
<body> <body>
<video id="video" autoplay style="display: block; margin: 0 auto; max-width: 100%; height: auto;"></video>
<video id="video" autoplay style="display: block; margin: 0 auto;"></video>
<footer>
</footer>
</body> </body>
</html> </html>

View File

@ -34,7 +34,7 @@ $(function() {
console.log(room); console.log(room);
socket = io('https://kurento.fishrungames.com/'); socket = io('https://stream.gto.to/');
$('#call').on('click', function(e) { presenter(); e.preventDefault(); } ); $('#call').on('click', function(e) { presenter(); e.preventDefault(); } );
$('#viewer').on('click', function(e) { viewer(); e.preventDefault(); } ); $('#viewer').on('click', function(e) { viewer(); e.preventDefault(); } );
@ -131,18 +131,7 @@ function viewer() {
var options = { var options = {
remoteVideo: video, remoteVideo: video,
onicecandidate : onIceCandidate, onicecandidate : onIceCandidate
configuration: {
iceServers:[
{
urls: 'turn:numb.viagenie.ca',
credential: '170988abC',
password: '170988abC',
username: 'wow_123@bk.ru'
}
]
}
}; };
webRtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerRecvonly(options, function(error) { webRtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerRecvonly(options, function(error) {