Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sweng-group-15
signalbuddy
Commits
bfab3ae2
Commit
bfab3ae2
authored
Oct 12, 2019
by
Moritz Langenstein
Browse files
(ml5717) Fixed ICE server format and connection resources
parent
056576c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
dist/sockets.js
View file @
bfab3ae2
...
...
@@ -23,7 +23,7 @@ function signalbuddy(server, config) {
io
.
on
(
'
connection
'
,
function
(
client
)
{
client
.
resources
=
{
screen
:
false
,
video
:
fals
e
,
video
:
tru
e
,
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
)
{
...
...
src/sockets.js
View file @
bfab3ae2
...
...
@@ -8,7 +8,7 @@ function signalbuddy(server, config) {
io
.
on
(
'
connection
'
,
(
client
)
=>
{
client
.
resources
=
{
screen
:
false
,
video
:
fals
e
,
video
:
tru
e
,
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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment