Commit bfab3ae2 authored by Moritz Langenstein's avatar Moritz Langenstein
Browse files

(ml5717) Fixed ICE server format and connection resources

parent 056576c7
......@@ -23,7 +23,7 @@ function signalbuddy(server, config) {
io.on('connection', function (client) {
client.resources = {
screen: false,
video: false,
video: true,
audio: false
};
......@@ -126,8 +126,13 @@ function signalbuddy(server, config) {
});
// tell client about stun and turn servers and generate nonces
client.emit('stunservers', (0, _freeice2.default)({ stunCount: config.stunCount, turnCount: 0 }));
client.emit('turnservers', (0, _freeice2.default)({ stunCount: 0, turnCount: config.turnCount }));
client.emit('stunservers', [{
"urls": "stun:stun.l.google.com:19302"
}] /*freeice({stunCount: config.stunCount, turnCount: -1}).map(server => {
return { urls: server.url }
})*/);
client.emit('turnservers', [] /*freeice({stunCount: -1, turnCount: config.turnCount})*/);
});
function describeRoom(roomName) {
......
......@@ -8,7 +8,7 @@ function signalbuddy(server, config) {
io.on('connection', (client) => {
client.resources = {
screen: false,
video: false,
video: true,
audio: false
};
......@@ -111,8 +111,13 @@ function signalbuddy(server, config) {
});
// tell client about stun and turn servers and generate nonces
client.emit('stunservers', freeice({stunCount: config.stunCount, turnCount: 0}));
client.emit('turnservers', freeice({stunCount: 0, turnCount: config.turnCount}));
client.emit('stunservers', [{
"urls": "stun:stun.l.google.com:19302"
}]/*freeice({stunCount: config.stunCount, turnCount: -1}).map(server => {
return { urls: server.url }
})*/);
client.emit('turnservers', []/*freeice({stunCount: -1, turnCount: config.turnCount})*/);
});
function describeRoom(roomName) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment