Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
sfu
Commits
aa3e094f
Commit
aa3e094f
authored
Sep 14, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix checkbox for activity detection, increase interval to 200ms.
parent
f2fcc09e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
static/sfu.js
static/sfu.js
+4
-4
No files found.
static/sfu.js
View file @
aa3e094f
...
...
@@ -166,7 +166,7 @@ function gotDownStream(c) {
setMediaStatus
(
c
);
}
c
.
onstats
=
gotDownStats
;
if
(
document
.
getElementById
(
'
activitybox
'
).
value
)
if
(
document
.
getElementById
(
'
activitybox
'
).
checked
)
c
.
setStatsInterval
(
activityDetectionInterval
);
}
...
...
@@ -309,14 +309,14 @@ document.getElementById('requestselect').onchange = function(e) {
serverConnection
.
request
(
this
.
value
);
};
const
activityDetectionInterval
=
1
00
;
const
activityDetectionInterval
=
2
00
;
const
activityDetectionPeriod
=
700
;
const
activityDetectionThreshold
=
0.2
;
document
.
getElementById
(
'
activitybox
'
).
onchange
=
function
(
e
)
{
for
(
let
id
in
serverConnection
.
down
)
{
let
c
=
serverConnection
.
down
[
id
];
if
(
this
.
value
)
if
(
this
.
checked
)
c
.
setStatsInterval
(
activityDetectionInterval
);
else
{
setActive
(
c
,
false
);
...
...
@@ -357,7 +357,7 @@ function setActive(c, value) {
}
function
gotDownStats
(
stats
)
{
if
(
!
document
.
getElementById
(
'
activitybox
'
).
value
)
if
(
!
document
.
getElementById
(
'
activitybox
'
).
checked
)
return
;
let
c
=
this
;
...
...
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