Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
hublot
Commits
eea67458
Commit
eea67458
authored
Oct 16, 2017
by
Yoann HOUPERT
Browse files
add check participant value
parent
be245bf5
Pipeline
#3717
passed with stage
in 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
client/controller/controller.js
client/controller/controller.js
+11
-9
No files found.
client/controller/controller.js
View file @
eea67458
...
...
@@ -24,16 +24,18 @@ robotController = {
getRemoteParticipants
:
()
=>
{
const
participants
=
easyrtc
.
getRoomOccupantsAsArray
(
room
);
const
res
=
[];
for
(
let
i
=
0
;
i
<
participants
.
length
;
i
++
)
{
const
participant
=
participants
[
i
];
try
{
const
mediaStream
=
robotController
.
getRemoteStream
(
participant
);
if
(
mediaStream
!==
null
)
{
res
.
push
(
participant
);
if
(
participants
)
{
for
(
let
i
=
0
;
i
<
participants
.
length
;
i
++
)
{
const
participant
=
participants
[
i
];
try
{
const
mediaStream
=
robotController
.
getRemoteStream
(
participant
);
if
(
mediaStream
!==
null
)
{
res
.
push
(
participant
);
}
}
catch
(
err
)
{
console
.
error
(
'
could not get remote stream for %s
'
,
participant
);
console
.
error
(
err
);
}
}
catch
(
err
)
{
console
.
error
(
'
could not get remote stream for %s
'
,
participant
);
console
.
error
(
err
);
}
}
return
res
;
...
...
Write
Preview
Markdown
is supported
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